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