Reload page on 401 since there is an authentification problem

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2021-12-07 17:48:28 +01:00
parent 50d256f959
commit 170ca81760
No known key found for this signature in database
GPG key ID: 06B35D38387B67BE

View file

@ -2232,11 +2232,9 @@
this.hideMask();
if (status === 401) {
if (this.getCurrentDirectory() === '/') {
// Give up, if we are not authorized to access user root folder, we are logged out
location.reload(); // this will redirect the user to the login page while saving the current url
}
return false;
// We are not authentificated, so reload the page so that we get
// redirected to the login page while saving the current url.
location.reload();
}
// Firewall Blocked request?