Merge pull request #9062 from overleaf/pairining-patch

[web] fix async form redirect handling for institutional SSO flow

GitOrigin-RevId: 35664e101e43b05771961ac4b6dc49d7ebd8fa44
This commit is contained in:
Eric Mc Sween 2022-10-11 10:44:10 -04:00 committed by Copybot
parent a177872179
commit 59285d8a1f

View file

@ -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)) {