mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
a177872179
commit
59285d8a1f
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue