Page MenuHomePhabricator

hCaptcha: Don't call siteverify if no token is provided
Closed, ResolvedPublic

Description

Summary

There's no need to call the /siteverify endpoint if the client hasn't supplied a token.

Notes

Acceptance criteria

  • Calls to /siteverify are not made when $token is null in passCaptcha(), and a log message is generated when this is the case

Event Timeline

Change #1212177 had a related patch set uploaded (by Chuiimuii_ofc; author: Chuiimuii_ofc):

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: skip siteverify when token missing

https://gerrit.wikimedia.org/r/1212177

Change #1212177 had a related patch set uploaded (by Chuiimuii_ofc; author: Chuiimuii_ofc):

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: skip siteverify when token missing

https://gerrit.wikimedia.org/r/1212177

Change #1212177 merged by jenkins-bot:

[mediawiki/extensions/ConfirmEdit@master] hCaptcha: skip siteverify API call when token missing

https://gerrit.wikimedia.org/r/1212177