Commit 78a15166 authored by John Wang's avatar John Wang

feat: update invite member expire to 3600s

parent 477f1b37
......@@ -404,7 +404,7 @@ class RegisterService:
token = str(uuid.uuid4())
email_hash = sha256(account.email.encode()).hexdigest()
cache_key = 'member_invite_token:{}, {}:{}'.format(str(tenant.id), email_hash, token)
redis_client.setex(cache_key, 600, str(account.id))
redis_client.setex(cache_key, 3600, str(account.id))
return token
@classmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment