diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-01 12:14:22 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-01 12:14:22 -0400 |
commit | db88a00d48d1dce48b8700e460c06ff7fb344f0a (patch) | |
tree | cdb089f5aadcbd22aa63612d4d50bbe63fcbe112 /app/Schema/Postgres.php | |
parent | db69d5c429cf747e72c4ded26f3821e7f688bc13 (diff) |
Add bruteforce protection
Diffstat (limited to 'app/Schema/Postgres.php')
-rw-r--r-- | app/Schema/Postgres.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 6b85ff57..876df981 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,13 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 61; +const VERSION = 62; + +function version_62($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN nb_failed_login INTEGER DEFAULT 0"); + $pdo->exec("ALTER TABLE users ADD COLUMN lock_expiration_date INTEGER DEFAULT 0"); +} function version_61($pdo) { |