mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 15:11:48 +01:00
Merge remote-tracking branch 'upstream/feature-improve-authentication' into feature-improve-authentication
This commit is contained in:
commit
7125357a44
7 changed files with 173 additions and 71 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue