diff --git a/app/Http/Controllers/Auth/ConfirmEmailController.php b/app/Http/Controllers/Auth/ConfirmEmailController.php index 7939c76..01ac66e 100644 --- a/app/Http/Controllers/Auth/ConfirmEmailController.php +++ b/app/Http/Controllers/Auth/ConfirmEmailController.php @@ -51,9 +51,9 @@ class ConfirmEmailController extends Controller if ($wasConfirmed) { // user just changed an e-mail - flash()->success("Your new e-mail $ec->email was confirmed!")->important(); + flash()->success("Your new e-mail $ec->email was confirmed!"); } else { - flash()->success("Your e-mail $ec->email was confirmed, your account is now active!")->important(); + flash()->success("Your e-mail $ec->email was confirmed, your account is now active!"); } return redirect(route('profile.view', $u->name)); diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 912abdc..fa0a513 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -87,4 +87,16 @@ class RegisterController extends Controller 'password' => Hash::make($data['password']), ]); } + + /** + * The user has been registered. + * + * @param \Illuminate\Http\Request $request + * @param User $user + * @return mixed + */ + protected function registered(Request $request, $user) + { + $user->sendEmailConfirmationLink($user->email); + } }