1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-05-31 23:10:01 +02:00
This commit is contained in:
Florent Daigniere 2021-12-21 16:23:27 +01:00
parent 6d5926ef29
commit bee6e980e3

View File

@ -490,7 +490,7 @@ session = MailuSessionExtension()
def verify_temp_token(email, token):
try:
if token.startswith('token-'):
if sessid := app.session_store.get(token)
if sessid := app.session_store.get(token):
session = MailuSession(sessid, app)
if session.get('_user_id', '') == email:
return True