Merge pull request #13972 from rabbitmq/md/clear-auth-session-on-expiry
Clear management auth storage when redirecting to login
This commit is contained in:
commit
3c4fc996e4
|
@ -1316,7 +1316,8 @@ function update_status(status) {
|
||||||
|
|
||||||
function with_req(method, path, body, fun) {
|
function with_req(method, path, body, fun) {
|
||||||
if(!has_auth_credentials()) {
|
if(!has_auth_credentials()) {
|
||||||
// navigate to the login form
|
// Clear any lingering auth settings in local storage and navigate to the login form.
|
||||||
|
clear_auth();
|
||||||
location.reload();
|
location.reload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue