|
|
@ -45,6 +45,7 @@ def reset_password():
|
|
|
|
|
|
|
|
|
|
|
|
form = ResetPasswordPassForm(request.form)
|
|
|
|
form = ResetPasswordPassForm(request.form)
|
|
|
|
if request.method == 'POST' and form.validate():
|
|
|
|
if request.method == 'POST' and form.validate():
|
|
|
|
|
|
|
|
user = User.query.filter_by(email=form.email.data).first()
|
|
|
|
user.create_password(form.password.data)
|
|
|
|
user.create_password(form.password.data)
|
|
|
|
|
|
|
|
|
|
|
|
flash('Password successfully reset.') # for real
|
|
|
|
flash('Password successfully reset.') # for real
|
|
|
|