Skip to content

Commit

Permalink
feat: audit for password modification TencentBlueKing#289
Browse files Browse the repository at this point in the history
  • Loading branch information
Canway-shiisa committed Mar 21, 2022
1 parent 7b0bc46 commit 61bf52c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/saas/bkuser_shell/apis/viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ def _prepare_headers(

return headers

def get_api_client_by_request(self, request, force_action_id: str = "", no_auth: bool = False, user_from_token: bool = False):
def get_api_client_by_request(
self,
request,
force_action_id: str = "",
no_auth: bool = False,
user_from_token: bool = False
):
"""从 request 中获取 api client"""
return get_api_client(self._prepare_headers(request, force_action_id, no_auth, user_from_token))

Expand Down

0 comments on commit 61bf52c

Please sign in to comment.