From 7a5bcc217146621fa088e3572ccb8d950b3097c5 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 3 Feb 2023 16:01:31 -0500 Subject: [PATCH] fix: #11257, onSuccessfulLogin called with improper uid --- src/routes/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 9febe062a8..934fdec80e 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -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);