login interrupt fixes
This commit is contained in:
parent
fa1d5ed97b
commit
c3b1962bf6
|
@ -1 +0,0 @@
|
||||||
{"branch_name":"beta","last_commit_date":"2022-01-24T13:55:04.000Z","last_commit_author":"rakesh","last_commit_hash":"dc8b7fdbd5f116b0c17137a50f04c12849d48317"}
|
|
|
@ -9,17 +9,18 @@ const vueMaintenanceMode = process.env.VUE_APP_MAINTENANCE_MODE;
|
||||||
|
|
||||||
const loginInterrupt = function(current_url, message) {
|
const loginInterrupt = function(current_url, message) {
|
||||||
|
|
||||||
sessionStorage.cinterrupted_page = current_url;
|
if(!current_url.includes("gate/sign-in"))
|
||||||
sessionStorage.cinterrupt_message = message;
|
sessionStorage.crinterrupted_page = current_url;
|
||||||
|
sessionStorage.crinterrupt_message = message;
|
||||||
window.location.href = loginUrl;
|
window.location.href = loginUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
const redirectToInterruptedPage = function() {
|
const redirectToInterruptedPage = function() {
|
||||||
//sessionStorage.cinterrupted_page.clear();
|
//sessionStorage.crinterrupted_page.clear();
|
||||||
const url = sessionStorage.cinterrupted_page;
|
const url = sessionStorage.crinterrupted_page;
|
||||||
if (url) {
|
if (url) {
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
sessionStorage.removeItem("cinterrupted_page");
|
sessionStorage.removeItem("crinterrupted_page");
|
||||||
}
|
}
|
||||||
//window.location.href = homeUrl;
|
//window.location.href = homeUrl;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue