(js) Reload page when session has expired

This commit is contained in:
Francis Lachapelle
2015-10-27 11:31:31 -04:00
parent 4172c216f5
commit dc385a82ff
2 changed files with 26 additions and 4 deletions
+4 -1
View File
@@ -23,7 +23,10 @@
function login() {
Authentication.login(vm.creds)
.then(function(url) {
window.location.href = url;
if (window.location.href === url)
window.location.reload(true);
else
window.location.href = url;
}, function(msg) {
Dialog.alert(l('Authentication Failed'), msg.error);
});