From c161a2c98751aab0787a4f67730337047181f990 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Tue, 21 Dec 2021 15:42:12 +0100 Subject: [PATCH] syntax --- core/admin/mailu/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/admin/mailu/utils.py b/core/admin/mailu/utils.py index fa27948f..e4dc4d07 100644 --- a/core/admin/mailu/utils.py +++ b/core/admin/mailu/utils.py @@ -481,8 +481,7 @@ session = MailuSessionExtension() def verify_temp_token(email, token): try: if token.startswith('token-'): - sessid = app.session_store.get(token) - if sessid: + if sessid := app.session_store.get(token) session = MailuSession(sessid, app) if session.get('_user_id', '') == email: return True