Make sure to actually check CAPTCHAs on submit.

This commit is contained in:
Neil Williams
2012-06-27 23:49:29 -07:00
parent fd4662a34b
commit 38d792a6a7

View File

@@ -221,6 +221,9 @@ class ApiController(RedditController):
# submission page, and hasn't updated their script
return
if form.has_errors('captcha', errors.BAD_CAPTCHA):
return
if (form.has_errors('sr',
errors.SUBREDDIT_NOEXIST,
errors.SUBREDDIT_NOTALLOWED,