fix: 登录日志 user_agent 过长

pull/5927/head
xinwen 2021-04-08 16:51:44 +08:00 committed by 老广
parent 7e4f20f443
commit 03ad7777d0
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}