mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
feat: configurable invite expiry time (#1573)
This commit is contained in:
@@ -489,9 +489,10 @@ class RegisterService:
|
||||
'email': account.email,
|
||||
'workspace_id': tenant.id,
|
||||
}
|
||||
expiryHours = current_app.config['INVITE_EXPIRY_HOURS']
|
||||
redis_client.setex(
|
||||
cls._get_invitation_token_key(token),
|
||||
3600,
|
||||
expiryHours * 60 * 60,
|
||||
json.dumps(invitation_data)
|
||||
)
|
||||
return token
|
||||
|
||||
Reference in New Issue
Block a user