redirect to /login after account delete to prevent recreation of sso account (#22575)

* redirect to /login after account delete to prevent recreation of sso account

* after delete, redirect to /login if siteSettings.login_required
This commit is contained in:
marstall 2023-07-14 11:13:45 -04:00 committed by GitHub
parent 8b985cbc88
commit 3e6e33df35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ export default function logout({ redirect } = {}) {
window.location.href = redirect;
return;
}
window.location.href = getURL("/");
const url = ctx.siteSettings.login_required ? "/login" : "/";
window.location.href = getURL(url);
}