mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 18:30:13 +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)
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue