summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-12-13 20:07:55 +0200
committerLauri Ojansivu <x@xet7.org>2018-12-13 20:07:55 +0200
commit2a5a428bc072e33a6cc6f4a3bebdde74d87bfcec (patch)
tree645bf877b1143dcc876dac402c034676c89fdfea /models/users.js
parent4b7d47465acf5c435f8e13810328bd8effedc1e3 (diff)
downloadwekan-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.js2
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;
}