Browse Source

fix: 修改连接token secret长度为16

pull/8595/head
Jiangjie.Bai 2 years ago committed by Jiangjie.Bai
parent
commit
395636296d
  1. 2
      apps/authentication/serializers/connection_token.py

2
apps/authentication/serializers/connection_token.py

@ -61,7 +61,7 @@ class ConnectionTokenSerializer(OrgResourceModelSerializerMixin):
system_user = attrs.get('system_user') or ''
asset = attrs.get('asset') 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()
if isinstance(asset, Asset):

Loading…
Cancel
Save