From a20e3884f70ca14b7307327b4f2b1d1ee37a6815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ku=C5=BE=C3=ADlek?= Date: Thu, 14 May 2020 22:11:41 +0200 Subject: [PATCH] BLBOSTI --- yadc/bp/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yadc/bp/auth.py b/yadc/bp/auth.py index 413227b..f8af34f 100644 --- a/yadc/bp/auth.py +++ b/yadc/bp/auth.py @@ -47,6 +47,7 @@ def reset_password(): if request.method == 'POST' and form.validate(): user = User.query.filter_by(email=form.email.data).first() user.create_password(form.password.data) + db.session.commit() flash('Password successfully reset.') # for real return redirect(url_for('.login'))