Skip to content

Commit 8fad53d

Browse files
authored
Merge pull request #60586 from nextcloud/backport/60547/stable21
[stable21] fix: don't tell the remote their token is lower
2 parents 744ecd0 + 687c9cc commit 8fad53d

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
@@ -155,7 +155,7 @@ public function requestSharedSecret($url, $token) {
155155
'remote server (' . $url . ') presented lower token. We will initiate the exchange of the shared secret.',
156156
['app' => 'federation']
157157
);
158-
throw new OCSForbiddenException();
158+
return new Http\DataResponse();
159159
}
160160

161161
$this->jobList->add(

0 commit comments

Comments
 (0)