diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-07 23:28:17 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-07 23:28:17 -0500 |
commit | 00b9508d8178bae016b2a25a81282dbe9ae0a9d2 (patch) | |
tree | 488397b9830b9ee56ff3eb4752958ea7a44eec04 /app/Schema/Mysql.php | |
parent | 607d9dc79429cefa51dfe1739564922cc9a2ab89 (diff) |
Be able to disable the login form for specific users
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r-- | app/Schema/Mysql.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index 5a52288b..9c066625 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -5,7 +5,12 @@ namespace Schema; use PDO; use Core\Security; -const VERSION = 43; +const VERSION = 44; + +function version_44($pdo) +{ + $pdo->exec('ALTER TABLE users ADD COLUMN disable_login_form TINYINT(1) DEFAULT 0'); +} function version_43($pdo) { |