diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-12-13 20:07:55 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-12-13 20:07:55 +0200 |
commit | 2a5a428bc072e33a6cc6f4a3bebdde74d87bfcec (patch) | |
tree | 645bf877b1143dcc876dac402c034676c89fdfea /models/users.js | |
parent | 4b7d47465acf5c435f8e13810328bd8effedc1e3 (diff) | |
download | wekan-2a5a428bc072e33a6cc6f4a3bebdde74d87bfcec.tar.gz wekan-2a5a428bc072e33a6cc6f4a3bebdde74d87bfcec.tar.bz2 wekan-2a5a428bc072e33a6cc6f4a3bebdde74d87bfcec.zip |
- Fix Reference error.
Thanks to Akuket !
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index 90ae8bf6..d4c678b7 100644 --- a/models/users.js +++ b/models/users.js @@ -521,7 +521,7 @@ if (Meteor.isServer) { const disableRegistration = Settings.findOne().disableRegistration; // If this is the first Authentication by the ldap and self registration disabled - if (disableRegistration && options.ldap) { + if (disableRegistration && options && options.ldap) { user.authenticationMethod = 'ldap'; return user; } |