summaryrefslogtreecommitdiffstats
path: root/server/authentication.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-11-19 17:51:26 +0200
committerLauri Ojansivu <x@xet7.org>2017-11-19 17:51:26 +0200
commit62e43c083218150b19eb2962dd7e8cd9c7098c9f (patch)
treebe70e6d51c9f5bcd6765b1639ef28bf5c5c8374f /server/authentication.js
parenteceaac799884ded6586940b0716a3020fa36022d (diff)
downloadwekan-62e43c083218150b19eb2962dd7e8cd9c7098c9f.tar.gz
wekan-62e43c083218150b19eb2962dd7e8cd9c7098c9f.tar.bz2
wekan-62e43c083218150b19eb2962dd7e8cd9c7098c9f.zip
Fix: Error after sending invitation and joining board:
Exception while invoking method 'login' TypeError: Cannot read property 'loginDisabled' of undefined. Thanks to nztqa ! Closes #1331
Diffstat (limited to 'server/authentication.js')
-rw-r--r--server/authentication.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/authentication.js b/server/authentication.js
index 3dd1f478..acc101cc 100644
--- a/server/authentication.js
+++ b/server/authentication.js
@@ -1,7 +1,8 @@
Meteor.startup(() => {
Accounts.validateLoginAttempt(function (options) {
- return !options.user.loginDisabled;
+ const user = options.user || {};
+ return !user.loginDisabled;
});
Authentication = {};