merge: fix: friendlycaptcha always failing (!963)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/963

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
Marie 2025-04-15 20:40:06 +00:00
commit f24be3674a

View file

@ -375,7 +375,7 @@ export class CaptchaService {
throw new CaptchaError(captchaErrorCodes.invalidParameters, 'frc-failed: secret and captureResult are required'); throw new CaptchaError(captchaErrorCodes.invalidParameters, 'frc-failed: secret and captureResult are required');
} }
await this.verifyFriendlyCaptcha(params.captchaResult, params.captchaResult); await this.verifyFriendlyCaptcha(params.secret, params.captchaResult);
await this.updateMeta(provider, params); await this.updateMeta(provider, params);
}, },
}[provider]; }[provider];