mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 10:08:12 +00:00
(js) Reload page when session has expired
This commit is contained in:
1 parent
4172c216f5
commit
dc385a82ff
2 files changed
+26
-4
No files matched your search
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user