backend: Rate limit login attempts per email and IP
This commit is contained in:
1 parent
5470818841
commit
52fb8af684
18 files changed
+106
-116
No files matched your search
@@ -44,7 +44,6 @@ public sealed class AccountController(AuthApiClient authApi, HelpdeskApiClient a
|
||||
catch (ApiException ex) when (ex.StatusCode is HttpStatusCode.BadRequest or HttpStatusCode.Unauthorized
|
||||
or HttpStatusCode.Forbidden or HttpStatusCode.TooManyRequests)
|
||||
{
|
||||
// 401 špatné heslo / zamčený účet, 403 neověřený e-mail nebo deaktivovaný účet – API vrací český text.
|
||||
ModelState.AddApiErrors(ex, typeof(LoginViewModel));
|
||||
model.Password = "";
|
||||
return View(model);
|
||||
|
||||
Reference in new issue
Block a user