first pass, non-working
This commit is contained in:
parent
459a9c2c59
commit
3c2f4a0445
17 changed files with 295 additions and 121 deletions
8
realms/modules/auth/local/hooks.py
Normal file
8
realms/modules/auth/local/hooks.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from flask import current_app
|
||||
from flask_wtf import RecaptchaField
|
||||
from .forms import RegistrationForm
|
||||
|
||||
|
||||
def before_first_request():
|
||||
if current_app.config['RECAPTCHA_ENABLE']:
|
||||
setattr(RegistrationForm, 'recaptcha', RecaptchaField("You Human?"))
|
Loading…
Add table
Add a link
Reference in a new issue