From 7bbc5dcb158d368bbdca2634781ea19320130877 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Fri, 4 Sep 2015 00:04:48 +0200 Subject: [PATCH] Fix user activation --- web/lib/auth.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/lib/auth.js b/web/lib/auth.js index e2b4cc9..58868b7 100644 --- a/web/lib/auth.js +++ b/web/lib/auth.js @@ -187,8 +187,8 @@ export function* activateUser(code) { const user = yield Users.findOne({activationCode: code}); if (user) { Users.updateOne({_id: user._id}, {'$unset': {activationCode: ''}}); - yield setupSession(this, user); - } else { - return false; + yield setupSession.call(this, user); + return true; } + return false; }