fix(audits): sso 登录日志没有 type

pull/4919/head
xinwen 2020-10-26 11:59:56 +08:00 committed by Jiangjie.Bai
parent d7daf7071a
commit 38f7c123e5
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class SSOViewSet(AuthMixin, JmsGenericViewSet):
此接口违反了 `Restful` 的规范
`GET` 应该是安全的方法但此接口是不安全的
"""
request.META['HTTP_X_JMS_LOGIN_TYPE'] = 'W'
authkey = request.query_params.get(AUTH_KEY)
next_url = request.query_params.get(NEXT_URL)
if not next_url or not next_url.startswith('/'):