diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 09:27:18 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 09:27:18 +0200 |
commit | 50392b28721f8fff4143cff484a5cca2aa482093 (patch) | |
tree | f2420b9e4dda5ab1bb20527bcf8a238943db77f9 | |
parent | Bug fix in the dashboard template. (diff) | |
download | newspipe-50392b28721f8fff4143cff484a5cca2aa482093.tar.gz newspipe-50392b28721f8fff4143cff484a5cca2aa482093.tar.bz2 newspipe-50392b28721f8fff4143cff484a5cca2aa482093.zip |
Removed recaptcha.
-rw-r--r-- | src/conf.py | 5 | ||||
-rw-r--r-- | src/conf/conf.cfg-sample | 2 | ||||
-rw-r--r-- | src/web/forms.py | 1 | ||||
-rw-r--r-- | src/web/templates/signup.html | 2 |
4 files changed, 0 insertions, 10 deletions
diff --git a/src/conf.py b/src/conf.py index f30b5701..6a50eeb1 100644 --- a/src/conf.py +++ b/src/conf.py @@ -28,8 +28,6 @@ DEFAULTS = {"platform_url": "https://jarr.herokuapp.com/", "cdn_address": "", "admin_email": "root@jarr.localhost", "postmark_api_key": "", - "recaptcha_public_key": "", - "recaptcha_private_key": "", "token_validity_period": "3600", "nb_worker": "100", "api_login": "", @@ -79,9 +77,6 @@ else: PLATFORM_URL = config.get('misc', 'platform_url') ADMIN_EMAIL = config.get('misc', 'admin_email') SELF_REGISTRATION = config.getboolean('misc', 'self_registration') -RECAPTCHA_PUBLIC_KEY = config.get('misc', 'recaptcha_public_key') -RECAPTCHA_PRIVATE_KEY = config.get('misc', - 'recaptcha_private_key') SECURITY_PASSWORD_SALT = config.get('misc', 'security_password_salt') TOKEN_VALIDITY_PERIOD = config.getint('misc', 'token_validity_period') LOG_PATH = os.path.abspath(config.get('misc', 'log_path')) diff --git a/src/conf/conf.cfg-sample b/src/conf/conf.cfg-sample index 1fd572ba..56bb4500 100644 --- a/src/conf/conf.cfg-sample +++ b/src/conf/conf.cfg-sample @@ -7,8 +7,6 @@ cdn_address = https://cdn.cedricbonhomme.org/ [misc] platform_url = http://127.0.0.1:5000/ admin_email = -recaptcha_public_key = -recaptcha_private_key = security_password_salt = a secret to confirm user account token_validity_period = 3600 log_path = ./src/web/var/jarr.log diff --git a/src/web/forms.py b/src/web/forms.py index bf321ae3..c7752ab2 100644 --- a/src/web/forms.py +++ b/src/web/forms.py @@ -34,7 +34,6 @@ from werkzeug.exceptions import NotFound from wtforms import TextField, TextAreaField, PasswordField, BooleanField, \ SubmitField, IntegerField, SelectField, validators, HiddenField from flask.ext.wtf.html5 import EmailField -from flask_wtf import RecaptchaField from web import utils from web.controllers import UserController diff --git a/src/web/templates/signup.html b/src/web/templates/signup.html index 3962c42a..69cf0506 100644 --- a/src/web/templates/signup.html +++ b/src/web/templates/signup.html @@ -16,8 +16,6 @@ {{ form.password(class_="form-control") }} {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} <p class="help-block">{{ _('Minimum 6 characters.') }}</p> </div> - {{ form.recaptcha.label }} - {{ form.recaptcha }} {% for error in form.recaptcha.errors %} <span style="color: red;">{{ error }}<br /></span> {% endfor %} <br /> {{ form.submit(class_="btn btn-default") }} </form> |