Fixed SSO issues

This commit is contained in:
Frikky
2024-05-24 03:20:23 +02:00
parent d1e4de5b44
commit 93621698e3
5 changed files with 921 additions and 916 deletions
+6 -3
View File
@@ -500,12 +500,15 @@ const Header = (props) => {
//globalUrl = responseJson.region_url
}
if (responseJson["reason"] === "SSO_REDIRECT") {
window.location.href = responseJson["url"]
return
setTimeout(() => {
toast.info("Redirecting to SSO login page as SSO is required for this organization.")
window.location.href = responseJson["url"]
return
}, 2000)
}
setTimeout(() => {
window.location.reload();
window.location.reload()
}, 2000);
toast("Successfully changed active organization - refreshing!");
File diff suppressed because it is too large Load Diff