mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-25 15:31:37 +01:00
Fix accidental limit on password length
This commit is contained in:
parent
6ce495fcd3
commit
1469e37c38
@ -162,8 +162,8 @@ def send_email_page(username):
|
|||||||
|
|
||||||
class SetPasswordForm(FlaskForm):
|
class SetPasswordForm(FlaskForm):
|
||||||
email = StringField("Email", [Optional(), Email()])
|
email = StringField("Email", [Optional(), Email()])
|
||||||
password = PasswordField("New password", [InputRequired(), Length(2, 20)])
|
password = PasswordField("New password", [InputRequired(), Length(2, 100)])
|
||||||
password2 = PasswordField("Verify password", [InputRequired(), Length(2, 20)])
|
password2 = PasswordField("Verify password", [InputRequired(), Length(2, 100)])
|
||||||
submit = SubmitField("Save")
|
submit = SubmitField("Save")
|
||||||
|
|
||||||
@app.route("/user/set-password/", methods=["GET", "POST"])
|
@app.route("/user/set-password/", methods=["GET", "POST"])
|
||||||
|
Loading…
Reference in New Issue
Block a user