1
1
Fork 0
master
Jan Kužílek 5 years ago
parent c28f2d771a
commit a20e3884f7

@ -47,6 +47,7 @@ def reset_password():
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 = User.query.filter_by(email=form.email.data).first()
user.create_password(form.password.data) user.create_password(form.password.data)
db.session.commit()
flash('Password successfully reset.') # for real flash('Password successfully reset.') # for real
return redirect(url_for('.login')) return redirect(url_for('.login'))

Loading…
Cancel
Save