fix to match test expectations

This commit is contained in:
Iain Sproat
2025-05-13 14:16:29 +01:00
parent b23f21d8ee
commit 7751fee8a1
@@ -52,7 +52,7 @@ export const passportAuthenticationCallbackFactory =
}
const infoMsg = resolveInfoMessage(info)
if (!user && !e) {
if (!user) {
// no user despite there being no error, so authentication failed
const message = infoMsg || 'Failed to authenticate, contact server admins'
res.redirect(new URL(defaultErrorPath(message), getFrontendOrigin()).toString())