Skip to content

Commit 436f809

Browse files
Reload page upon successful login if version has changed
1 parent ef9e091 commit 436f809

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ function start_app_login () {
115115

116116

117117
function check_login () {
118-
check_version()
119118
user = JSON.parse(sync_get('/whoami'));
120119
if (user == false || user.error) {
121120
clear_auth();
@@ -128,7 +127,7 @@ function check_login () {
128127
}
129128
return false;
130129
}
131-
130+
check_version()
132131
hide_popup_warn()
133132
replace_content('outer', format('layout', {}))
134133
var user_login_session_timeout = parseInt(user.login_session_timeout)
@@ -1871,4 +1870,4 @@ function check_version() {
18711870
store_pref('version', curVersion)
18721871
location.reload()
18731872
}
1874-
}
1873+
}

0 commit comments

Comments
 (0)