Skip to content

Commit

Permalink
Fix activation code when registering. Fixes #7
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Gaspar <[email protected]>
  • Loading branch information
brunogaspar committed Apr 7, 2014
1 parent d38d9ec commit 06cc84c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
2 changes: 1 addition & 1 deletion app/views/sentry/emails/activate.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Activate your account by clicking <a href="{{ URL::to("activate/{$user->getUserId()}/{$code}") }}">here</a>
Activate your account by clicking <a href="{{ URL::to("activate/{$user->getUserId()}/{$activation->code}") }}">here</a>

0 comments on commit 06cc84c

Please sign in to comment.