mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-30 08:42:04 +00:00
fix: 登录日志 user_agent 过长
This commit is contained in:
parent
d2678e2a43
commit
de9c69843d
@ -153,7 +153,7 @@ def generate_data(username, request):
|
|||||||
'username': username,
|
'username': username,
|
||||||
'ip': login_ip,
|
'ip': login_ip,
|
||||||
'type': login_type,
|
'type': login_type,
|
||||||
'user_agent': user_agent,
|
'user_agent': user_agent[0:254],
|
||||||
'datetime': timezone.now(),
|
'datetime': timezone.now(),
|
||||||
'backend': get_login_backend(request)
|
'backend': get_login_backend(request)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user