summaryrefslogtreecommitdiffstats
path: root/models/settings.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 /models/settings.js
parent6f0e0748e1eb6cac238edfcfcfcde1e41d613b96 (diff)
downloadwekan-c2118f4830020631ab228c59c8b9247a13655ae6.tar.gz
wekan-c2118f4830020631ab228c59c8b9247a13655ae6.tar.bz2
wekan-c2118f4830020631ab228c59c8b9247a13655ae6.zip
Improve authentication
Diffstat (limited to 'models/settings.js')
-rw-r--r--models/settings.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/models/settings.js b/models/settings.js
index 674c99a0..5dd28448 100644
--- a/models/settings.js
+++ b/models/settings.js
@@ -40,6 +40,14 @@ Settings.attachSchema(new SimpleSchema({
type: String,
optional: true,
},
+ displayAuthenticationMethod: {
+ type: Boolean,
+ optional: true,
+ },
+ defaultAuthenticationMethod: {
+ type: String,
+ optional: false,
+ },
hideLogo: {
type: Boolean,
optional: true,
@@ -85,7 +93,8 @@ if (Meteor.isServer) {
const from = `Boards Support <support@${domain}>`;
const defaultSetting = {disableRegistration: false, mailServer: {
username: '', password: '', host: '', port: '', enableTLS: false, from,
- }, createdAt: now, modifiedAt: now};
+ }, createdAt: now, modifiedAt: now, displayAuthenticationMethod: true,
+ defaultAuthenticationMethod: 'password'};
Settings.insert(defaultSetting);
}
const newSetting = Settings.findOne();