Added more views
This commit is contained in:
		@@ -30,6 +30,7 @@ class CreateUser(FlaskForm):
 | 
			
		||||
    username = StringField('Username', validators=[InputRequired(), Length(min=4, max=15)])
 | 
			
		||||
    email = StringField('Email Address', validators=[InputRequired(), Email(message='You must enter a valid email address.'), Length(max=50)])
 | 
			
		||||
    password = PasswordField('Password (Optional)', validators=[Optional(),Length(min=6, max=30, message='The password must be between 6 and 20 characters long.')])
 | 
			
		||||
    notify = BooleanField('Notify accout creation by email', render_kw={'checked': True})
 | 
			
		||||
 | 
			
		||||
class DeleteUser(FlaskForm):
 | 
			
		||||
    password = PasswordField('Confirm Your Password', validators=[InputRequired(), Length(min=6, max=30, message='The password must be between 6 and 20 characters long.')])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user