summaryrefslogtreecommitdiffstats
path: root/accounts/views/default/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/views/default/__init__.py')
-rw-r--r--accounts/views/default/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/views/default/__init__.py b/accounts/views/default/__init__.py
index 0b7065d..bba20fd 100644
--- a/accounts/views/default/__init__.py
+++ b/accounts/views/default/__init__.py
@@ -84,7 +84,7 @@ def register_complete(token: str):
@logout_required
def lost_password():
form = LostPasswordForm()
- if form.validate_on_submit():
+ if form.validate_on_submit() and form.user:
#TODO: make the link only usable once (e.g include a hash of the old pw)
# atm the only thing we do is make the link valid for only little time
accounts_app.mail_backend.send(