mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-06 19:38:54 +00:00
fix: connection token API 返回有效时间
This commit is contained in:
parent
70a07539af
commit
97e59384e0
@ -484,7 +484,8 @@ class UserConnectionTokenViewSet(
|
||||
tp = 'app' if application else 'asset'
|
||||
data = {
|
||||
"id": token, 'secret': secret,
|
||||
'type': tp, 'protocol': system_user.protocol
|
||||
'type': tp, 'protocol': system_user.protocol,
|
||||
'expire_time': self.get_token_ttl(token),
|
||||
}
|
||||
return Response(data, status=201)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user