diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-02-08 12:33:39 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-02-08 12:33:39 +0200 |
commit | 7125357a4440f5c95ae6c8f5bcd92fdfdbefa397 (patch) | |
tree | 19e21456f5ee10e444ad055b7761235d1e78661f /models | |
parent | 329c8d64a824f12b1352dc2f6277ee08e1c4df58 (diff) | |
parent | ec453b89b8238adcbb9334e1d006675aa8a7fe06 (diff) | |
download | wekan-7125357a4440f5c95ae6c8f5bcd92fdfdbefa397.tar.gz wekan-7125357a4440f5c95ae6c8f5bcd92fdfdbefa397.tar.bz2 wekan-7125357a4440f5c95ae6c8f5bcd92fdfdbefa397.zip |
Merge remote-tracking branch 'upstream/feature-improve-authentication' into feature-improve-authentication
Diffstat (limited to 'models')
-rw-r--r-- | models/settings.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/models/settings.js b/models/settings.js index 674c99a0..4fcc36ac 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(); |