diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-06-09 13:53:32 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-06-09 13:53:32 +0200 |
commit | cf06b17df15d6de83d2893cbe08880bbd9dd5c2c (patch) | |
tree | 66625ac7e1bc1e496f6615f4612ffe58ef02f00c /apps/federation | |
parent | 90c1ec1c49798232c0c1303ccbddacac536b5768 (diff) | |
download | nextcloud-server-cf06b17df15d6de83d2893cbe08880bbd9dd5c2c.tar.gz nextcloud-server-cf06b17df15d6de83d2893cbe08880bbd9dd5c2c.zip |
Use the correct realm for basic authentication - fixes #23427
Diffstat (limited to 'apps/federation')
-rw-r--r-- | apps/federation/lib/DAV/FedAuth.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/federation/lib/DAV/FedAuth.php b/apps/federation/lib/DAV/FedAuth.php index bb1041adcdf..21c0d61487c 100644 --- a/apps/federation/lib/DAV/FedAuth.php +++ b/apps/federation/lib/DAV/FedAuth.php @@ -36,6 +36,10 @@ class FedAuth extends AbstractBasic { public function __construct(DbHandler $db) { $this->db = $db; $this->principalPrefix = 'principals/system/'; + + // setup realm + $defaults = new \OC_Defaults(); + $this->realm = $defaults->getName(); } /** |