feat: add login rate limiting to prevent brute-force attacks (#2761)

This commit is contained in:
ACX
2026-02-15 08:25:12 -07:00
committed by GitHub
parent 0318d1b3bb
commit f7650d9fd6
7 changed files with 63 additions and 4 deletions
@@ -89,6 +89,8 @@ export class LoginComponent implements OnInit, OnDestroy {
error: (error) => {
if (error.status === 0) {
this.errorMessage = this.translocoService.translate('auth.login.connectionError');
} else if (error.status === 429) {
this.errorMessage = this.translocoService.translate('auth.login.rateLimited');
} else {
this.errorMessage = error?.error?.message || this.translocoService.translate('auth.login.unexpectedError');
}