mirror of https://github.com/jumpserver/jumpserver
fix: connection token API 返回有效时间
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