Skip to content

Commit

Permalink
fix(backend): 修复密码强度校验去掉鉴权 #3534
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud authored and zhangzhw8 committed Mar 13, 2024
1 parent d8a684e commit e5d22c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dbm-ui/backend/configuration/views/password_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ class PasswordPolicyViewSet(viewsets.SystemViewSet):
pagination_class = None

def _get_custom_permissions(self):
if self.action == self.get_password_policy.__name__:
if self.action == [
self.get_password_policy.__name__,
self.verify_password_strength.__name__,
self.get_random_password.__name__,
self.query_random_cycle.__name__,
]:
return []

bk_biz_id = self.request.query_params.get("bk_biz_id", 0) or self.request.data.get("bk_biz_id", 0)
Expand Down

0 comments on commit e5d22c6

Please sign in to comment.