mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 09:38:49 +01:00
patch authentication
This commit is contained in:
parent
6f2275e8cb
commit
8c497efb46
5 changed files with 31 additions and 88 deletions
|
|
@ -520,10 +520,10 @@ if (Meteor.isServer) {
|
|||
}
|
||||
|
||||
const disableRegistration = Settings.findOne().disableRegistration;
|
||||
// If ldap, bypass the inviation code if the self registration isn't allowed.
|
||||
// TODO : pay attention if ldap field in the user model change to another content ex : ldap field to connection_type
|
||||
if (options.ldap || !disableRegistration) {
|
||||
user.authenticationMethod = 'ldap';
|
||||
if (!disableRegistration) {
|
||||
if (options.ldap) {
|
||||
user.authenticationMethod = 'ldap';
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue