summaryrefslogtreecommitdiffstats
path: root/server/migrations.js
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@supinfo.com>2019-02-01 19:00:44 +0100
committerguillaume <guillaume.cassou@supinfo.com>2019-02-01 19:00:44 +0100
commitc2118f4830020631ab228c59c8b9247a13655ae6 (patch)
treece67b0a37e6ae3c7baac46e11a5277ec1e41d16c /server/migrations.js
parent6f0e0748e1eb6cac238edfcfcfcde1e41d613b96 (diff)
downloadwekan-c2118f4830020631ab228c59c8b9247a13655ae6.tar.gz
wekan-c2118f4830020631ab228c59c8b9247a13655ae6.tar.bz2
wekan-c2118f4830020631ab228c59c8b9247a13655ae6.zip
Improve authentication
Diffstat (limited to 'server/migrations.js')
-rw-r--r--server/migrations.js24
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