From bdefee9d586f9e6e194f1867d638f22bcb05ed74 Mon Sep 17 00:00:00 2001 From: tuxcoder Date: Tue, 2 Jan 2024 18:07:55 +0100 Subject: [PATCH] force lower case username --- lenticular_cloud/form/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lenticular_cloud/form/auth.py b/lenticular_cloud/form/auth.py index 064e90c..54b2c19 100644 --- a/lenticular_cloud/form/auth.py +++ b/lenticular_cloud/form/auth.py @@ -30,7 +30,7 @@ class ConsentForm(FlaskForm): class RegistrationForm(FlaskForm): username = StringField(gettext('Username'), validators=[ DataRequired(), - Regexp('^[a-zA-Z0-9-.]+$', message=gettext('Only `a-z`, `A-Z`, `0-9`, `-.` is allowed for username')) + Regexp('^[a-z0-9-.]+$', message=gettext('Only `a-z`, `0-9`, `-.` is allowed for username')) ]) password = PasswordField(gettext('Password'), validators=[ DataRequired(),