mirror of
https://github.com/wekan/wekan.git
synced 2026-03-03 04:10:16 +01:00
Update user registration logic to use reactive setting for disableRegistration
This commit is contained in:
parent
155fef1f55
commit
26ae280fe3
2 changed files with 85 additions and 11 deletions
|
|
@ -1822,7 +1822,8 @@ if (Meteor.isServer) {
|
|||
return user;
|
||||
}
|
||||
|
||||
const disableRegistration = false;
|
||||
const disableRegistration =
|
||||
ReactiveCache.getCurrentSetting().disableRegistration;
|
||||
// If this is the first Authentication by the ldap and self registration disabled
|
||||
if (disableRegistration && options && options.ldap) {
|
||||
user.authenticationMethod = 'ldap';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue