Skip to content

Commit

Permalink
refactor: simplify success check
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobassa committed Jun 6, 2024
1 parent 91ae44d commit ed35de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/services/captcha.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CaptchaService {
try {
const response = await axios.post(verifyURL);

if (response.data.success === false) return false;
if (!response.data.success) return false;
if (response.data.action !== 'submit_receipt') return false;
if (response.data.score < 0.7) return false;

Expand Down

0 comments on commit ed35de4

Please sign in to comment.