We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Guys, Sorry to open with a issue this question.
Can you help me implement the reCaptcha with blueprint ?
init.py recaptcha = ReCaptcha() recaptcha.init_app(app)
recaptcha = ReCaptcha() recaptcha.init_app(app)
html file
{{ recaptcha }}
how can I call recaptcha to verify in login.py
Thank you
The text was updated successfully, but these errors were encountered:
I did that by assigning the instance of ReCaptcha() in another module. Let's say
app.py (main)
import global # that's the "another" module ------- global.recaptcha = ReCaptcha(app) ------- @app.route("/"): def index(): return render_template("index.html", recaptcha=global.recaptcha.get_code())
{{recaptcha}}
login.py
@login.route("/verify"): def verify(): if global.recaptcha.verify(): -------
Sorry, something went wrong.
Hi, Thanks , this global is a module that I install with pip ?
No, the module "global" is just another python module file, you can rename to whatever you want. E.g variable.py #the global one app.py login.py
Another example: glo.py #the global one app.py login.py
No branches or pull requests
Hi Guys,
Sorry to open with a issue this question.
Can you help me implement the reCaptcha with blueprint ?
init.py
recaptcha = ReCaptcha() recaptcha.init_app(app)
html file
{{ recaptcha }}
how can I call recaptcha to verify in login.py
Thank you
The text was updated successfully, but these errors were encountered: