Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

Commit aa36eea

Browse files
committed
Now users can change their password; closes issue #3.
1 parent b0b3384 commit aa36eea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

langdev/web/user.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ def validate_login(form, field):
181181

182182
class ProfileForm(Form):
183183

184+
password = PasswordField(
185+
'Password',
186+
validators=[Required(), EqualTo('confirm',
187+
message='Passwords must match.')]
188+
)
189+
confirm = PasswordField('Repeat Password', validators=[Required()])
184190
name = TextField('Screen name', validators=[Required(), Length(1, 45)])
185191
email = html5.EmailField('Email', validators=[Optional(), Email()])
186192
url = html5.URLField('Website', validators=[Optional(), URL()])

0 commit comments

Comments
 (0)