realms-wiki/realms/modules/auth/local/hooks.py
2015-10-13 22:52:30 -05:00

9 lines
257 B
Python

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?"))