浏览代码

- Fix Reference error.

Thanks to Akuket !
Lauri Ojansivu 6 年之前
父节点
当前提交
2a5a428bc0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/users.js

+ 1 - 1
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;
     }