summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-11-16 21:26:07 +0200
committerLauri Ojansivu <x@xet7.org>2018-11-16 21:26:07 +0200
commit033a9482fc7f765963f55e9dbd82d32b91970b74 (patch)
tree5a3313d72a57094edfdded9ae6888a81482ceec3 /models/users.js
parent73daf191ae15591bdf7fa71446a636460c482d6e (diff)
parent893329d9c6d33aa5572e268e8f951400a2446303 (diff)
downloadwekan-033a9482fc7f765963f55e9dbd82d32b91970b74.tar.gz
wekan-033a9482fc7f765963f55e9dbd82d32b91970b74.tar.bz2
wekan-033a9482fc7f765963f55e9dbd82d32b91970b74.zip
Merge branch 'devel' of https://github.com/Akuket/wekan into Akuket-devel
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;
}