Skip to content

Commit 10dea92

Browse files
committed
fix(oauth2): Do not store the code in throttle metadata
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent e4ab89d commit 10dea92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/oauth2/lib/Controller/OauthApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getToken(
9393
$response = new JSONResponse([
9494
'error' => 'invalid_request',
9595
], Http::STATUS_BAD_REQUEST);
96-
$response->throttle(['invalid_request' => 'token not found', 'code' => $code]);
96+
$response->throttle(['invalid_request' => 'token not found']);
9797
return $response;
9898
}
9999

0 commit comments

Comments
 (0)