]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix accidental limit on password length
authorrubenwardy <rw@rubenwardy.com>
Mon, 12 Aug 2019 13:10:28 +0000 (14:10 +0100)
committerrubenwardy <rw@rubenwardy.com>
Mon, 12 Aug 2019 13:10:28 +0000 (14:10 +0100)
app/views/users/users.py

index 040950e797ddd58a3a24920496382d7c9b51aaa1..a31b1e0192ca9691729751288c85b26908ba95c3 100644 (file)
@@ -162,8 +162,8 @@ def send_email_page(username):
 
 class SetPasswordForm(FlaskForm):
        email = StringField("Email", [Optional(), Email()])
-       password = PasswordField("New password", [InputRequired(), Length(2, 20)])
-       password2 = PasswordField("Verify password", [InputRequired(), Length(2, 20)])
+       password = PasswordField("New password", [InputRequired(), Length(2, 100)])
+       password2 = PasswordField("Verify password", [InputRequired(), Length(2, 100)])
        submit = SubmitField("Save")
 
 @app.route("/user/set-password/", methods=["GET", "POST"])