before testing verification mecanisum

This commit is contained in:
ghassan committed 2026-01-20 21:14:52 +03:00
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');
}