mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-29 08:17:17 +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,
|
||||
'ip': login_ip,
|
||||
'type': login_type,
|
||||
'user_agent': user_agent,
|
||||
'user_agent': user_agent[0:254],
|
||||
'datetime': timezone.now(),
|
||||
'backend': get_login_backend(request)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user