Fix Suspended User Login Error Redirect URL (#6297)
This commit is contained in:
committed by
GitHub
parent
0213221a7c
commit
78b9322a28
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user