fix: URL problems (like for sub-dir implement users)
Just let the loginToken cannot be found twice.
This commit is contained in:
parent
376f9e9f2f
commit
763e6a48e9
@ -92,7 +92,7 @@ const LoginPage = ({ theme }) => {
|
||||
console.log("SSO token is", retToken[1]);
|
||||
localStorage.setItem("sso_ret_token", retToken[1]);
|
||||
console.log("SSO token saved. Reloading the page to prevent loging again.");
|
||||
window.location.href = window.location.origin; // prevent further requests
|
||||
window.location.href = window.location.href.replace(retToken[0], ""); // prevent further requests
|
||||
} else if (ssoToken) {
|
||||
const baseUrl = localStorage.getItem("sso_base_url");
|
||||
localStorage.removeItem("sso_base_url");
|
||||
|
Loading…
Reference in New Issue
Block a user