Commit abdd0d9e authored by John Wang's avatar John Wang

Merge branch 'feat/send-mail' into deploy/dev

parents ce9cb603 78a15166
...@@ -404,7 +404,7 @@ class RegisterService: ...@@ -404,7 +404,7 @@ class RegisterService:
token = str(uuid.uuid4()) token = str(uuid.uuid4())
email_hash = sha256(account.email.encode()).hexdigest() email_hash = sha256(account.email.encode()).hexdigest()
cache_key = 'member_invite_token:{}, {}:{}'.format(str(tenant.id), email_hash, token) 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 return token
@classmethod @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