Skip to content

Commit

Permalink
Merge 305b25f into bb36039
Browse files Browse the repository at this point in the history
  • Loading branch information
frankhn committed May 22, 2019
2 parents bb36039 + 305b25f commit 2054a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class User {
]);
const token = helper.generateToken(userAccount);
userAccount = select.pick(result, ['username', 'email', 'bio', 'image']);
return helper.authenticationResponse(res, token, userAccount);
return res.redirect(`${process.env.FRONTEND_URL}?token=${token}`);
}

/**
Expand Down

0 comments on commit 2054a8d

Please sign in to comment.