Skip to content

Commit

Permalink
Merge pull request #42459 from nextcloud/fix/dav/fallback-realm
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Feb 23, 2024
2 parents 152b841 + 91127ed commit db9fd94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/LegacyPublicAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(IRequest $request,

// setup realm
$defaults = new \OCP\Defaults();
$this->realm = $defaults->getName();
$this->realm = $defaults->getName() ?: 'Nextcloud';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct(ISession $session,

// setup realm
$defaults = new \OCP\Defaults();
$this->realm = $defaults->getName();
$this->realm = $defaults->getName() ?: 'Nextcloud';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/BearerAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(IUserSession $userSession,

// setup realm
$defaults = new \OCP\Defaults();
$this->realm = $defaults->getName();
$this->realm = $defaults->getName() ?: 'Nextcloud';
}

private function setupUserFs($userId) {
Expand Down

0 comments on commit db9fd94

Please sign in to comment.