diff --git a/app/blueprints/users/account.py b/app/blueprints/users/account.py index c996541..e7da0b5 100644 --- a/app/blueprints/users/account.py +++ b/app/blueprints/users/account.py @@ -100,7 +100,8 @@ def logout(): class RegisterForm(FlaskForm): - username = StringField("Username", [InputRequired()]) + username = StringField("Username", [InputRequired(), + Regexp("^[a-zA-Z0-9._ -]+$", message="Only a-zA-Z0-9._ allowed")]) email = StringField("Email", [InputRequired(), Email()]) password = PasswordField("Password", [InputRequired(), Length(6, 100)]) submit = SubmitField("Register") diff --git a/app/templates/users/claim_forums.html b/app/templates/users/claim_forums.html index 9e02ac0..a79813f 100644 --- a/app/templates/users/claim_forums.html +++ b/app/templates/users/claim_forums.html @@ -5,22 +5,22 @@ Create Account from Forums User {% endblock %} {% block content %} -
- You'll need to use prove that you have access to your forum account using one of the options below.
- This is so ContentDB can link your account to your forum account.
-
+ You'll need to use prove that you have access to your forum account using one of the options below.
+ This is so ContentDB can link your account to your forum account.
+
- Don't have a forums account? - You can still sign up without one. -
++ Don't have a forums account? + You can still sign up without one. +
-#} -{# If you have a forum account, please use one of the other two#} -{# options.#} -{#
#} -{##} -{# Register#} -{#