|
|
@@ -35,22 +35,7 @@ class SignupController extends \lithium\action\Controller {
|
|
|
|
|
|
//Save it to the database
|
|
|
$key->save();
|
|
|
-
|
|
|
- //Create the link for the user to click.
|
|
|
- $link = $this->html->link('Here', array('controller' => 'signup',
|
|
|
- 'action' => 'confirm',
|
|
|
- 'args' => $key->key));
|
|
|
-
|
|
|
-
|
|
|
- $mailer = Transports::adapter('default');
|
|
|
- $message = Message::newInstance()
|
|
|
- ->setSubject('Welcome to OtakuHUB')
|
|
|
- ->setFrom(array('admin@weareotak.us' => 'OtakuHUB signup team'))
|
|
|
- ->setTo(array($user->email))
|
|
|
- ->setBody("Hey! Wecome to our awesome site! Click $link to get started");
|
|
|
-
|
|
|
- $result = $mailer->send($message);
|
|
|
-
|
|
|
+ $link = "/signup/confirm/$key->key";
|
|
|
|
|
|
return compact('key', 'link', 'user');
|
|
|
}
|