MCPcopy
hub / github.com/1Panel-dev/MaxKB / put

Method put

apps/users/views/user.py:276–278  ·  view source on GitHub ↗
(self, request: Request, user_id)

Source from the content-addressed store, hash-verified

274 get_details=get_re_password_details)
275 @has_permissions(PermissionConstants.USER_EDIT, RoleConstants.ADMIN)
276 def put(self, request: Request, user_id):
277 return result.success(
278 UserManageSerializer.Operate(data={'id': user_id}).re_password(request.data, with_valid=True))
279
280 class Page(APIView):
281 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 2

re_passwordMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected