Fix Suspended User Login Error Redirect URL (#6297)

This commit is contained in:
Ray (Jui-Tse) Hung
2023-12-16 19:34:55 -05:00
committed by GitHub
parent 0213221a7c
commit 78b9322a28
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ export default function createMiddleware(providerName: string) {
}
if (result.user.isSuspended) {
return ctx.redirect("/?notice=suspended");
return ctx.redirect("/?notice=user-suspended");
}
await signIn(ctx, providerName, result);