mirror of
https://github.com/nextcloud/server.git
synced 2026-03-24 19:33:49 -04:00
Reload page on 401 since there is an authentification problem
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
c003a56816
commit
5aef34de49
1 changed files with 3 additions and 5 deletions
|
|
@ -2087,11 +2087,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?
|
||||
|
|
|
|||
Loading…
Reference in a new issue