From 06cc84c17aa44365b952dd29fe44155974427d85 Mon Sep 17 00:00:00 2001 From: Bruno Gaspar Date: Mon, 7 Apr 2014 20:11:48 +0100 Subject: [PATCH] Fix activation code when registering. Fixes #7 Signed-off-by: Bruno Gaspar --- app/controllers/AuthController.php | 4 ++-- app/views/sentry/emails/activate.blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/AuthController.php b/app/controllers/AuthController.php index 1dc807bb..5cbc0a29 100644 --- a/app/controllers/AuthController.php +++ b/app/controllers/AuthController.php @@ -95,9 +95,9 @@ public function processRegistration() if ($user = Sentry::register($input)) { - $code = Activation::create($user); + $activation = Activation::create($user); - $sent = Mail::send('sentry.emails.activate', compact('user', 'code'), function($m) use ($user) + $sent = Mail::send('sentry.emails.activate', compact('user', 'activation'), function($m) use ($user) { $m->to($user->email)->subject('Activate Your Account'); }); diff --git a/app/views/sentry/emails/activate.blade.php b/app/views/sentry/emails/activate.blade.php index e24a004f..4b5f8583 100644 --- a/app/views/sentry/emails/activate.blade.php +++ b/app/views/sentry/emails/activate.blade.php @@ -1 +1 @@ -Activate your account by clicking getUserId()}/{$code}") }}">here +Activate your account by clicking getUserId()}/{$activation->code}") }}">here