write query profile
This commit is contained in:
@ -33,3 +33,9 @@ class AddUserForm(FlaskForm):
|
||||
InputRequired(message='Privilege is required.'),
|
||||
Regexp(r'^[0-9]$|^10$', message='Privilege must be an integer between 0 and 10.')
|
||||
])
|
||||
|
||||
class QueryProfileForm(FlaskForm):
|
||||
username = StringField('Username', validators=[
|
||||
InputRequired(message='Username is required.'),
|
||||
Regexp(r'^[a-zA-Z][a-zA-Z0-9_]{0,19}$', message='Username must start with a letter and can only contain letters, numbers, and underscores (max 20 characters).')
|
||||
])
|
Reference in New Issue
Block a user