From 1f63cdea0ae825c424529686a2f4ea61e0052c38 Mon Sep 17 00:00:00 2001 From: UnKnoWn Date: Wed, 17 May 2017 05:40:30 +0800 Subject: [PATCH] Update forms.py --- nyaa/forms.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nyaa/forms.py b/nyaa/forms.py index c22ef1c..eb47565 100644 --- a/nyaa/forms.py +++ b/nyaa/forms.py @@ -72,23 +72,23 @@ class RegisterForm(FlaskForm): class ProfileForm(FlaskForm): - email = TextField('New email address', [ + email = TextField('New Email Address', [ Email(), Optional(), Length(min=5, max=128), - Unique(User, User.email, 'Email is taken') + Unique(User, User.email, 'This email address has been taken') ]) - current_password = PasswordField('Current password', [Required()]) + current_password = PasswordField('Current Password', [Required()]) - new_password = PasswordField('New password (confirm)', [ + new_password = PasswordField('New Password', [ Optional(), - EqualTo('password_confirm', message='Passwords must match'), + EqualTo('password_confirm', message='Two passwords must match'), Length(min=6, max=1024, message='Password must be at least %(min)d characters long.') ]) - password_confirm = PasswordField('Repeat Password') + password_confirm = PasswordField('Repeat New Password') # Classes for a SelectField that can be set to disable options (id, name, disabled)