summaryrefslogtreecommitdiffstats
path: root/controllers/SignupController.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/SignupController.php')
-rw-r--r--controllers/SignupController.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/controllers/SignupController.php b/controllers/SignupController.php
index f368997..9c54f35 100644
--- a/controllers/SignupController.php
+++ b/controllers/SignupController.php
@@ -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');
}