diff options
author | guillaume <guillaume.cassou@supinfo.com> | 2019-02-01 19:00:44 +0100 |
---|---|---|
committer | guillaume <guillaume.cassou@supinfo.com> | 2019-02-01 19:00:44 +0100 |
commit | c2118f4830020631ab228c59c8b9247a13655ae6 (patch) | |
tree | ce67b0a37e6ae3c7baac46e11a5277ec1e41d16c /server/migrations.js | |
parent | 6f0e0748e1eb6cac238edfcfcfcde1e41d613b96 (diff) | |
download | wekan-c2118f4830020631ab228c59c8b9247a13655ae6.tar.gz wekan-c2118f4830020631ab228c59c8b9247a13655ae6.tar.bz2 wekan-c2118f4830020631ab228c59c8b9247a13655ae6.zip |
Improve authentication
Diffstat (limited to 'server/migrations.js')
-rw-r--r-- | server/migrations.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/migrations.js b/server/migrations.js index 2512b40c..a18ebd71 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -398,3 +398,27 @@ Migrations.add('add-custom-html-before-body-end', () => { }, }, noValidateMulti); }); + +Migrations.add('add-displayAuthenticationMethod', () => { + Settings.update({ + displayAuthenticationMethod: { + $exists: false, + }, + }, { + $set: { + displayAuthenticationMethod: true, + }, + }, noValidateMulti) +}); + +Migrations.add('add-defaultAuthenticationMethod', () => { + Settings.update({ + defaultAuthenticationMethod: { + $exists: false, + }, + }, { + $set: { + defaultAuthenticationMethod: 'password', + }, + }, noValidateMulti) +});
\ No newline at end of file |