diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-07-31 17:49:41 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-07-31 17:49:41 +0100 |
| commit | c7900e5b1e2651a28410d13dfa58c37701b65692 (patch) | |
| tree | aa512be3dededdfe12a50b63f2cbf998cba652fe /app/auth/forms.py | |
| parent | Clarify that points need to be clicked on (diff) | |
| download | AnnotateChange-c7900e5b1e2651a28410d13dfa58c37701b65692.tar.gz AnnotateChange-c7900e5b1e2651a28410d13dfa58c37701b65692.zip | |
Add terms and conditions to registration page
Diffstat (limited to 'app/auth/forms.py')
| -rw-r--r-- | app/auth/forms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/auth/forms.py b/app/auth/forms.py index 7758342..ea194a5 100644 --- a/app/auth/forms.py +++ b/app/auth/forms.py @@ -3,7 +3,7 @@ from flask import current_app from flask_wtf import FlaskForm -from wtforms import StringField, PasswordField, SubmitField +from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, ValidationError, Email, EqualTo from app.models import User @@ -22,6 +22,8 @@ class RegistrationForm(FlaskForm): password2 = PasswordField( "Repeat Password", validators=[DataRequired(), EqualTo("password")] ) + toc = BooleanField("I agree to the Terms and Conditions.", + validators=[DataRequired(), ]) submit = SubmitField("Register") def validate_username(self, username): |
