From c28f2d771aab6dc874fa3c17b4f73344e8a5daf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ku=C5=BE=C3=ADlek?= Date: Thu, 14 May 2020 22:05:38 +0200 Subject: [PATCH] BRUH bugs --- yadc/bp/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yadc/bp/auth.py b/yadc/bp/auth.py index a28a47a..413227b 100644 --- a/yadc/bp/auth.py +++ b/yadc/bp/auth.py @@ -45,6 +45,7 @@ def reset_password(): form = ResetPasswordPassForm(request.form) if request.method == 'POST' and form.validate(): + user = User.query.filter_by(email=form.email.data).first() user.create_password(form.password.data) flash('Password successfully reset.') # for real