mirror of
https://github.com/wekan/wekan.git
synced 2026-03-03 04:10:16 +01:00
Improve authentication
This commit is contained in:
parent
6f0e0748e1
commit
c2118f4830
7 changed files with 169 additions and 67 deletions
|
|
@ -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)
|
||||
});
|
||||
|
|
@ -1,5 +1,15 @@
|
|||
Meteor.publish('setting', () => {
|
||||
return Settings.find({}, {fields:{disableRegistration: 1, productName: 1, hideLogo: 1, customHTMLafterBodyStart: 1, customHTMLbeforeBodyEnd: 1}});
|
||||
return Settings.find({}, {
|
||||
fields:{
|
||||
disableRegistration: 1,
|
||||
productName: 1,
|
||||
hideLogo: 1,
|
||||
customHTMLafterBodyStart: 1,
|
||||
customHTMLbeforeBodyEnd: 1,
|
||||
displayAuthenticationMethod: 1,
|
||||
defaultAuthenticationMethod: 1
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Meteor.publish('mailServer', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue