ИСПРАВЛЕНИЕ - NODEDC AUTH: возвращать после direct logout-flow
This commit is contained in:
parent
81c7f434e6
commit
a4863b6a67
|
|
@ -303,6 +303,7 @@
|
|||
const redirectUrl = getSafePostLogoutRedirect();
|
||||
if (!redirectUrl) return;
|
||||
|
||||
const isInvalidationFlow = window.location.pathname.includes("/if/flow/default-invalidation-flow");
|
||||
const text = root.textContent || "";
|
||||
const logoutComplete = [
|
||||
"Logout successful",
|
||||
|
|
@ -313,13 +314,13 @@
|
|||
"Выход выполнен",
|
||||
].some((message) => text.includes(message));
|
||||
|
||||
if (!logoutComplete) return;
|
||||
if (!logoutComplete && !isInvalidationFlow) return;
|
||||
|
||||
document.body.dataset.nodedcLogoutRedirected = "true";
|
||||
document.body.classList.add("nodedc-auth-submitting");
|
||||
window.setTimeout(() => {
|
||||
window.location.replace(redirectUrl);
|
||||
}, 150);
|
||||
}, isInvalidationFlow ? 1600 : 150);
|
||||
}
|
||||
|
||||
let scheduled = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue