mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[Captcha] Implement failed logins ceiling (#1870)
* [Hacker1] Failed Login Attempts Captcha * [Captcha] Implement failed logins ceiling * Formatting * Updated approach after implementation talks with Kyle * Updated email templates // Updated calling arch for failed attempts * Formatting * Updated 2fa email links * Renamed baserequest methods to better match their actions * EF migrations/scripts * Updated with requested changes * Defaults for MaxiumumFailedLoginAttempts
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE "User" ADD "FailedLoginCount" integer NOT NULL DEFAULT 0;
|
||||
|
||||
ALTER TABLE "User" ADD "LastFailedLoginDate" timestamp without time zone NULL;
|
||||
|
||||
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
|
||||
VALUES ('20220301211818_FailedLoginCaptcha', '5.0.12');
|
||||
|
||||
COMMIT;
|
Reference in New Issue
Block a user