mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Fix unexpected captcha iden when API call fails and captcha is not needed.
This commit is contained in:
@@ -278,7 +278,7 @@ def _validatedForm(self, self_method, responder, simple_vals, param_vals,
|
||||
for validator in simple_vals:
|
||||
if (isinstance(validator, VCaptcha) and
|
||||
(form.has_errors('captcha', errors.BAD_CAPTCHA) or
|
||||
form.has_error())):
|
||||
(form.has_error() and c.user.needs_captcha()))):
|
||||
form.new_captcha()
|
||||
elif (isinstance(validator, VRatelimit) and
|
||||
form.has_errors('ratelimit', errors.RATELIMIT)):
|
||||
|
||||
Reference in New Issue
Block a user