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