mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 23:00:57 +00:00
fix: 修改连接token secret长度为16
This commit is contained in:
committed by
Jiangjie.Bai
parent
9967d52416
commit
395636296d
@@ -61,7 +61,7 @@ class ConnectionTokenSerializer(OrgResourceModelSerializerMixin):
|
|||||||
system_user = attrs.get('system_user') or ''
|
system_user = attrs.get('system_user') or ''
|
||||||
asset = attrs.get('asset') or ''
|
asset = attrs.get('asset') or ''
|
||||||
application = attrs.get('application') or ''
|
application = attrs.get('application') or ''
|
||||||
secret = attrs.get('secret') or random_string(64)
|
secret = attrs.get('secret') or random_string(16)
|
||||||
date_expired = attrs.get('date_expired') or ConnectionToken.get_default_date_expired()
|
date_expired = attrs.get('date_expired') or ConnectionToken.get_default_date_expired()
|
||||||
|
|
||||||
if isinstance(asset, Asset):
|
if isinstance(asset, Asset):
|
||||||
|
Reference in New Issue
Block a user