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:
parent
8b985cbc88
commit
3e6e33df35
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue