summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-04-20 16:52:38 +0200
committerGitHub <noreply@github.com>2023-04-20 16:52:38 +0200
commitb294edad804f40618a96116845615831302d0357 (patch)
tree71023e0f6d2185d44a4a62200e5613efa8aee089 /lib/base.php
parent8d5165e8dc40289b5d523523c4140f780b2fe293 (diff)
parent590c202797e6f5018635e45cdb2ed79ecd1c9865 (diff)
downloadnextcloud-server-b294edad804f40618a96116845615831302d0357.tar.gz
nextcloud-server-b294edad804f40618a96116845615831302d0357.zip
Merge branch 'master' into enh/type-iconfig-getter-calls
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index e0ec23151e3..9c588bdaa76 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -570,7 +570,9 @@ class OC {
// Debug mode gets access to the resources without strict cookie
// due to the fact that the SabreDAV browser also lives there.
if (!$config->getSystemValueBool('debug', false)) {
- http_response_code(\OCP\AppFramework\Http::STATUS_SERVICE_UNAVAILABLE);
+ http_response_code(\OCP\AppFramework\Http::STATUS_PRECONDITION_FAILED);
+ header('Content-Type: application/json');
+ echo json_encode(['error' => 'Strict Cookie has not been found in request']);
exit();
}
}
@@ -1027,6 +1029,7 @@ class OC {
// Always load authentication apps
OC_App::loadApps(['authentication']);
+ OC_App::loadApps(['extended_authentication']);
// Load minimum set of apps
if (!\OCP\Util::needUpgrade()