summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-01 12:14:22 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-01 12:14:22 -0400
commitdb88a00d48d1dce48b8700e460c06ff7fb344f0a (patch)
treecdb089f5aadcbd22aa63612d4d50bbe63fcbe112 /app/Schema/Sqlite.php
parentdb69d5c429cf747e72c4ded26f3821e7f688bc13 (diff)
Add bruteforce protection
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index 9e0575cf..4b8f5ac6 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,13 @@ use Core\Security;
use PDO;
use Model\Link;
-const VERSION = 77;
+const VERSION = 78;
+
+function version_78($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_77($pdo)
{