From 59285d8a1fd4f8605e2ea171e79f6773c72bdb82 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Tue, 11 Oct 2022 10:44:10 -0400 Subject: [PATCH] Merge pull request #9062 from overleaf/pairining-patch [web] fix async form redirect handling for institutional SSO flow GitOrigin-RevId: 35664e101e43b05771961ac4b6dc49d7ebd8fa44 --- .../app/src/Features/Authentication/AuthenticationController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Authentication/AuthenticationController.js b/services/web/app/src/Features/Authentication/AuthenticationController.js index 1761620695..ec3e1fffd2 100644 --- a/services/web/app/src/Features/Authentication/AuthenticationController.js +++ b/services/web/app/src/Features/Authentication/AuthenticationController.js @@ -106,7 +106,7 @@ const AuthenticationController = { finishLogin(user, req, res, next) { if (user === false) { - return res.redirect('/login') + return AsyncFormHelper.redirect(req, res, '/login') } // OAuth2 'state' mismatch if (Settings.adminOnlyLogin && !hasAdminAccess(user)) {