Skip to content

Commit 3259519

Browse files
authored
Merge pull request #169 from kenjis/add-Auth.registerSuccess
Add missing `Auth.registerSuccess`
2 parents c09e122 + b173d33 commit 3259519

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Authentication/Actions/EmailActivator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ public function verify(IncomingRequest $request)
8888
// Set the user active now
8989
$authenticator->activateUser($user);
9090

91-
// Get our login redirect url
92-
return redirect()->to(config('Auth')->loginRedirect());
91+
// Success!
92+
return redirect()->to(config('Auth')->registerRedirect())
93+
->with('message', lang('Auth.registerSuccess'));
9394
}
9495

9596
/**

src/Language/en/Auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// Registration
3030
'register' => 'Register',
3131
'registerDisabled' => 'Registration is not currently allowed.',
32+
'registerSuccess' => 'Welcome aboard!',
3233

3334
// Login
3435
'login' => 'Login',

0 commit comments

Comments
 (0)