From 2a5a428bc072e33a6cc6f4a3bebdde74d87bfcec Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 13 Dec 2018 20:07:55 +0200 Subject: - Fix Reference error. Thanks to Akuket ! --- models/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-1-g7c22