Skip to content

Commit 906e554

Browse files
Merge pull request #13975 from rabbitmq/mergify/bp/v4.1.x/pr-13972
Clear management auth storage when redirecting to login (backport #13972)
2 parents e880904 + ed2e1a1 commit 906e554

File tree

1 file changed

+2
-1
lines changed
  • deps/rabbitmq_management/priv/www/js

1 file changed

+2
-1
lines changed

deps/rabbitmq_management/priv/www/js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,8 @@ function update_status(status) {
13161316

13171317
function with_req(method, path, body, fun) {
13181318
if(!has_auth_credentials()) {
1319-
// navigate to the login form
1319+
// Clear any lingering auth settings in local storage and navigate to the login form.
1320+
clear_auth();
13201321
location.reload();
13211322
return;
13221323
}

0 commit comments

Comments
 (0)