before testing verification mecanisum
This commit is contained in:
1 parent
ab2d458387
commit
af567c2c5f
10 files changed
+147
-35
No files matched your search
@@ -34,6 +34,13 @@ class AuthenticatedSessionController extends Controller
|
||||
if (Auth::attempt($credentials)) {
|
||||
$request->session()->regenerate();
|
||||
|
||||
if (!$request->user()->hasVerifiedEmail()) {
|
||||
Auth::logout();
|
||||
return redirect()->route('verification.notice')->withErrors([
|
||||
'email' => 'You need to verify your email address before logging in.',
|
||||
]);
|
||||
}
|
||||
|
||||
return redirect()->route('family.dashboard');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user