Added brute-force attack prevention via login rate limit (#1490566)

This commit is contained in:
Aleksander Machniak
2015-11-11 18:53:43 +01:00
parent 7caa9f5f50
commit a15d877ba8
16 changed files with 134 additions and 9 deletions

View File

@@ -72,6 +72,8 @@ CREATE TABLE users (
mail_host varchar(128) NOT NULL default '',
created datetime NOT NULL default '0000-00-00 00:00:00',
last_login datetime DEFAULT NULL,
failed_login datetime DEFAULT NULL,
failed_login_counter integer DEFAULT NULL,
language varchar(5),
preferences text NOT NULL default ''
);
@@ -201,4 +203,4 @@ CREATE TABLE system (
value text NOT NULL
);
INSERT INTO system (name, value) VALUES ('roundcube-version', '2015030800');
INSERT INTO system (name, value) VALUES ('roundcube-version', '2015111100');