This commit is contained in:
Lizandro Guarnizo
2026-04-21 18:14:04 -05:00
parent 9108a584cf
commit bca737531b
3 changed files with 41 additions and 0 deletions
+10
View File
@@ -53,6 +53,16 @@ class LoginRequest extends FormRequest
]);
}
$user = Auth::user();
if ($user->estado !== null && $user->estado !== 'activo') {
Auth::logout();
RateLimiter::hit($this->throttleKey());
throw ValidationException::withMessages([
'email' => 'Tu cuenta está cerrada o inactiva. Contacta con soporte.',
]);
}
RateLimiter::clear($this->throttleKey());
}