summaryrefslogtreecommitdiffstats
path: root/accounts/views/default/__init__.py
diff options
context:
space:
mode:
authorJonah BrĂ¼chert <jbb@kaidan.im>2024-03-29 02:13:57 +0100
committerJonah BrĂ¼chert <jbb@kaidan.im>2024-03-29 02:14:22 +0100
commitdcad1d5ca832ea05ababa3d38de9a82fc361f2ba (patch)
tree738e06987788744c9071020844ac8c7896db2d6d /accounts/views/default/__init__.py
parent41551f9ff74c692b3db7818364a9b0966e5a08be (diff)
downloadweb-dcad1d5ca832ea05ababa3d38de9a82fc361f2ba.tar.gz
web-dcad1d5ca832ea05ababa3d38de9a82fc361f2ba.tar.bz2
web-dcad1d5ca832ea05ababa3d38de9a82fc361f2ba.zip
Enforce types in variables
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(