diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-03-29 02:13:57 +0100 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-03-29 02:14:22 +0100 |
commit | dcad1d5ca832ea05ababa3d38de9a82fc361f2ba (patch) | |
tree | 738e06987788744c9071020844ac8c7896db2d6d /accounts/views/default/__init__.py | |
parent | 41551f9ff74c692b3db7818364a9b0966e5a08be (diff) | |
download | web-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__.py | 2 |
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( |