diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 17f3af4364..737bd3e09d 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -4018,7 +4018,7 @@ App::post('/v1/account/mfa/challenge') ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) ->label('sdk.response.model', Response::MODEL_MFA_CHALLENGE) ->label('abuse-limit', 10) - ->label('abuse-key', 'url:{url},token:{param-token}') + ->label('abuse-key', 'url:{url},userId:{userId}') ->param('factor', '', new WhiteList([Type::EMAIL, Type::PHONE, Type::TOTP, Type::RECOVERY_CODE]), 'Factor used for verification. Must be one of following: `' . Type::EMAIL . '`, `' . Type::PHONE . '`, `' . Type::TOTP . '`, `' . Type::RECOVERY_CODE . '`.') ->inject('response') ->inject('dbForProject') @@ -4205,7 +4205,7 @@ App::put('/v1/account/mfa/challenge') ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) ->label('sdk.response.model', Response::MODEL_SESSION) ->label('abuse-limit', 10) - ->label('abuse-key', 'userId:{param-userId}') + ->label('abuse-key', 'url:{url},challengeId:{param-challengeId}') ->param('challengeId', '', new Text(256), 'ID of the challenge.') ->param('otp', '', new Text(256), 'Valid verification token.') ->inject('project')