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