Skip to content

Commit

Permalink
Merge pull request #693 from all-rit/692-hot-fix-repair-login-session…
Browse files Browse the repository at this point in the history
…-token-issue

Possible fix for login issue
  • Loading branch information
dm9965 authored Jan 14, 2025
2 parents 85d8488 + c5818b2 commit 33fde16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const authenticateRedirect = passport.authenticate('google', {
const authenticateCallback = async (req, res) => {
try {
const data = await UserService.authenticate(req.user.profile);
req.session.token = data.usersessionid;
await UserService.updateGuestUserId(data.userid, req.session.token);
req.session.token = data.usersessionid;
res.status(301);
res.redirect(req.session.url);
} catch (error) {
Expand Down

0 comments on commit 33fde16

Please sign in to comment.