From 2e19f0b4a85124df46194ff49cc4dfc6f74f918b Mon Sep 17 00:00:00 2001 From: Hector Veliz Date: Tue, 22 Apr 2025 11:57:33 -0400 Subject: [PATCH] changed the password min and max langth from 8 to 15-32 --- app/auth/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/auth/forms.py b/app/auth/forms.py index 76a0624..2efc86e 100644 --- a/app/auth/forms.py +++ b/app/auth/forms.py @@ -35,7 +35,7 @@ class RegistrationForm(Form): validators=[ DataRequired(), EqualTo("password2", message="Passwords must match"), - Length(min=8), + Length(min=8, max=32), ], ) password2 = PasswordField("Confirm password", validators=[DataRequired()]) @@ -261,9 +261,11 @@ class PasswordResetForm(Form): validators=[ DataRequired(), EqualTo("password2", message="Passwords must match"), + Length(min=15, max=32) ], ) - password2 = PasswordField("Confirm password", validators=[DataRequired()]) + password2 = PasswordField("Confirm password", validators=[DataRequired(), Length(min=15, max=32)] + ) submit = SubmitField("Reset Password") def validate_email(self, field):