write query profile

This commit is contained in:
2024-06-22 05:22:59 +00:00
parent c6df6a9a28
commit 98425cd893
5 changed files with 128 additions and 1 deletions

View File

@ -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).')
])