summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/Auth.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-10 10:41:46 +0200
committerGitHub <noreply@github.com>2016-06-10 10:41:46 +0200
commit67c3a974012770757ec63ef5257008fdb5902d37 (patch)
tree1fb08e17e48513337cd0c60d09ee513be508064c /apps/dav/lib/Connector/Sabre/Auth.php
parent6660488b735d42c6120e416d20279b448a5b1e1e (diff)
parentcf06b17df15d6de83d2893cbe08880bbd9dd5c2c (diff)
downloadnextcloud-server-67c3a974012770757ec63ef5257008fdb5902d37.tar.gz
nextcloud-server-67c3a974012770757ec63ef5257008fdb5902d37.zip
Merge pull request #25046 from owncloud/fix-the-realm
Use the correct realm for basic authentication
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/Auth.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/Auth.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php
index 27900cc1cad..653da10bc3c 100644
--- a/apps/dav/lib/Connector/Sabre/Auth.php
+++ b/apps/dav/lib/Connector/Sabre/Auth.php
@@ -74,6 +74,10 @@ class Auth extends AbstractBasic {
$this->twoFactorManager = $twoFactorManager;
$this->request = $request;
$this->principalPrefix = $principalPrefix;
+
+ // setup realm
+ $defaults = new \OC_Defaults();
+ $this->realm = $defaults->getName();
}
/**