Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added codes to ValidateErrors so they can be recognized and manipulat… #9

Merged
merged 1 commit into from
Mar 10, 2019

Conversation

apumapho
Copy link

…ed after they are raised within a recaptcha field

Allow you to check for specific error codes (e.g., score to low) after they are raised:

if form.has_error('captcha', 'score'):
  # retrieve the error
  captcha_error = form.errors.pop('captcha')
  do_something(captcha_error)
  # maybe route differently or display a captcha2
  display_captcha2()

…ed after they are raised within a recaptcha field
@kbytesys kbytesys merged commit f294b1a into kbytesys:master Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants