mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-23 11:54:25 +00:00
Fix logout with hard redirect -- dump state (#174)
This commit is contained in:
1 parent
08dac043eb
commit
ef17ea9676
5 files changed
+18
-12
No files matched your search
+2
-2
@@ -21,7 +21,7 @@ import {
|
||||
} from "./constants";
|
||||
import { ROUTE_LOGIN } from "src/router/routes";
|
||||
import {
|
||||
SESS_UNAUTHORIZED,
|
||||
SESS_FLASH_MSG,
|
||||
MSG_SESS_EXPIRED,
|
||||
MSG_SERVER_DOWN,
|
||||
MSG_SOMETHING_WRONG,
|
||||
@@ -163,7 +163,7 @@ const handleBadRequest = (msg: string) => {
|
||||
sessionStorage.clear();
|
||||
|
||||
if (window.location.pathname !== ROUTE_LOGIN) {
|
||||
sessionStorage.setItem(SESS_UNAUTHORIZED, msg);
|
||||
sessionStorage.setItem(SESS_FLASH_MSG, msg);
|
||||
window.location.href = ROUTE_LOGIN;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user