Skip to content

Commit 26e674d

Browse files
authored
Merge pull request #60582 from nextcloud/backport/60547/stable25
[stable25] fix: don't tell the remote their token is lower
2 parents 3f4e2bc + 2577a47 commit 26e674d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/federation/lib/Controller/OCSAuthAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function requestSharedSecret(string $url, string $token): DataResponse {
118118
'remote server (' . $url . ') presented lower token. We will initiate the exchange of the shared secret.',
119119
['app' => 'federation']
120120
);
121-
throw new OCSForbiddenException();
121+
return new DataResponse();
122122
}
123123

124124
$this->jobList->add(

0 commit comments

Comments
 (0)