summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@orange.fr>2018-11-06 11:28:35 +0100
committerguillaume <guillaume.cassou@orange.fr>2018-11-06 11:28:35 +0100
commit8c497efb46d2193674fee2e0c9da8053c533e79e (patch)
tree8cdecaa81ecf2f58f37317baba154bd02c4fbf6c /models/users.js
parent6f2275e8cb286cdf9dab3fee7f19b134eab70ca6 (diff)
downloadwekan-8c497efb46d2193674fee2e0c9da8053c533e79e.tar.gz
wekan-8c497efb46d2193674fee2e0c9da8053c533e79e.tar.bz2
wekan-8c497efb46d2193674fee2e0c9da8053c533e79e.zip
patch authentication
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/users.js b/models/users.js
index 630f4703..2e879d94 100644
--- a/models/users.js
+++ b/models/users.js
@@ -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;
}