overenie aktivneho uctu pri prihlasovani

This commit is contained in:
Andrej
2025-11-04 17:27:08 +01:00
parent eb122c41ab
commit 3f2d2c6438

View File

@@ -49,6 +49,15 @@ class LoginRequest extends FormRequest
]);
}
// Check if the authenticated user's account is active
if (! Auth::user()->active) {
Auth::logout();
throw ValidationException::withMessages([
'email' => __('auth.inactive_account'),
]);
}
RateLimiter::clear($this->throttleKey());
}