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

if recaptcha fail then validate_on_submit is False #343

Open
r1235613 opened this issue Jul 25, 2018 · 0 comments
Open

if recaptcha fail then validate_on_submit is False #343

r1235613 opened this issue Jul 25, 2018 · 0 comments

Comments

@r1235613
Copy link

r1235613 commented Jul 25, 2018

If recaptcha isn't pass, then process isn't show recaptcha message on form.recaptcha.errors.

Instead it will jump over form.validate_on_submit.

...
form.validate_on_submit():  # I think process will stop on here and show error message to User.
    no thing happen
dosonething  # process run here when User doesn't pass recaptcha.

I tried add validators on RecaptchaField but it's sitll not work

from flask_wtf import FlaskForm, RecaptchaField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
    recaptcha = RecaptchaField(validators=[DataRequired()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants