mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-06 11:36:32 +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'
|
tp = 'app' if application else 'asset'
|
||||||
data = {
|
data = {
|
||||||
"id": token, 'secret': secret,
|
"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)
|
return Response(data, status=201)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user