-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FOGL-8753 : Implemented user blocking for incorrect password (#1397)
* FOGL-8753 : Implemented user blocking for incorrect password Signed-off-by: nandan <nandan.ghildiyal@gmail.com>
- Loading branch information
Showing
16 changed files
with
218 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
fledge_version=2.4.0 | ||
fledge_schema=71 | ||
fledge_schema=72 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE fledge.users DROP COLUMN failed_attempts; | ||
ALTER TABLE fledge.users DROP COLUMN block_until; | ||
DELETE FROM fledge.log_codes where code IN ('USRBK', 'USRUB'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE fledge.users ADD COLUMN failed_attempts integer DEFAULT 0; | ||
ALTER TABLE fledge.users ADD COLUMN block_until timestamp(6) DEFAULT NULL; | ||
INSERT INTO fledge.log_codes ( code, description ) | ||
VALUES ( 'USRBK', 'User Blocked' ), ( 'USRUB', 'User Unblocked' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE fledge.users DROP COLUMN failed_attempts; | ||
ALTER TABLE fledge.users DROP COLUMN block_until; | ||
DELETE FROM fledge.log_codes where code IN ('USRBK', 'USRUB'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE fledge.users ADD COLUMN failed_attempts INTEGER DEFAULT 0; | ||
ALTER TABLE fledge.users ADD COLUMN block_until DATETIME DEFAULT NULL; | ||
INSERT INTO fledge.log_codes ( code, description ) | ||
VALUES ( 'USRBK', 'User Blocked' ), ( 'USRUB', 'User Unblocked' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE fledge.users DROP COLUMN failed_attempts; | ||
ALTER TABLE fledge.users DROP COLUMN block_until; | ||
DELETE FROM fledge.log_codes where code IN ('USRBK', 'USRUB'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE fledge.users ADD COLUMN failed_attempts INTEGER DEFAULT 0; | ||
ALTER TABLE fledge.users ADD COLUMN block_until DATETIME DEFAULT NULL; | ||
INSERT INTO fledge.log_codes ( code, description ) | ||
VALUES ( 'USRBK', 'User Blocked' ), ( 'USRUB', 'User Unblocked' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.