2016-08-20 01:48:00 +03:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2014-10-22 00:06:27 +03:00
|
|
|
from flask import current_app
|
|
|
|
from flask_wtf import RecaptchaField
|
2016-08-20 01:48:00 +03:00
|
|
|
|
2014-10-22 00:06:27 +03:00
|
|
|
from .forms import RegistrationForm
|
|
|
|
|
|
|
|
|
|
|
|
def before_first_request():
|
|
|
|
if current_app.config['RECAPTCHA_ENABLE']:
|
|
|
|
setattr(RegistrationForm, 'recaptcha', RecaptchaField("You Human?"))
|