@ -38,7 +38,7 @@ class ResetPasswordPassForm(ResetPasswordForm):
really = BooleanField ( ' I swear this really is my account and am not trying to steal anybody elses. ' , validators = [ DataRequired ( ) ] )
class RegisterForm ( CSRFForm ) :
username = StringField ( ' Username ' , validators = [ DataRequired ( ) ], render_kw = dict ( placeholder = " Username " ) )
username = StringField ( ' Username ' , validators = [ DataRequired ( ) , Regexp ( ' ^[a-zA-Z0-9 \ - \ _ \ $ \ #]+$ ' , message = " Only letters, numbers and few special characters are supported. " ) ], render_kw = dict ( placeholder = " Username " ) )
email = StringField ( ' Email ' , validators = [ DataRequired ( ) , Email ( ) ] , render_kw = dict ( placeholder = " Email " ) )
password = PasswordField ( ' Password ' , validators = [ DataRequired ( ) ] , render_kw = dict ( placeholder = " Password " ) )
password_again = PasswordField ( ' Repeat password ' , validators = [ DataRequired ( ) , EqualTo ( ' password ' ) ] , render_kw = dict ( placeholder = " Repeat password " ) )