Fix user activation
This commit is contained in:
parent
d10dc9113b
commit
7bbc5dcb15
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue