summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-23 11:54:49 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-24 09:51:26 +0200
commite366ed6485a987cc7a77573bf3e46cba854b07b5 (patch)
tree471eb807698e22ccb7e1e62ef871da1230561362 /core
parenteb8e1514587e078a3c4a832c6f4151c6fe0bf517 (diff)
downloadnextcloud-server-e366ed6485a987cc7a77573bf3e46cba854b07b5.tar.gz
nextcloud-server-e366ed6485a987cc7a77573bf3e46cba854b07b5.zip
Don't reload page in case of auth errors during setup checks
If an error occurs during setup checks, do not let the global ajax error handler reload the page.
Diffstat (limited to 'core')
-rw-r--r--core/js/setupchecks.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index ee93781b074..9c601e7bd5f 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -76,7 +76,8 @@
$.ajax({
type: 'PROPFIND',
url: url,
- complete: afterCall
+ complete: afterCall,
+ allowAuthErrors: true
});
return deferred.promise();
},
@@ -209,7 +210,8 @@
$.ajax({
type: 'GET',
url: OC.linkTo('', oc_dataURL+'/htaccesstest.txt?t=' + (new Date()).getTime()),
- complete: afterCall
+ complete: afterCall,
+ allowAuthErrors: true
});
return deferred.promise();
},