Skip to content

Commit

Permalink
fix: #11257, onSuccessfulLogin called with improper uid
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Feb 3, 2023
1 parent f3306d0 commit 7a5bcc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Auth.reloadRoutes = async function (params) {
}, Auth.middleware.validateAuth, (req, res, next) => {
async.waterfall([
async.apply(req.login.bind(req), res.locals.user, { keepSessionInfo: true }),
async.apply(controllers.authentication.onSuccessfulLogin, req, req.uid),
async.apply(controllers.authentication.onSuccessfulLogin, req, res.locals.user.uid),
], (err) => {
if (err) {
return next(err);
Expand Down

0 comments on commit 7a5bcc2

Please sign in to comment.