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

Method post

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

Source from the content-addressed store, hash-verified

307 get_operation_object=lambda r, k: {'name': r.user.username},
308 get_details=get_re_password_details)
309 def post(self, request: Request):
310 request_data = request.data
311 if request_data.get("encrypted", False):
312 request_data['password'] = decrypt(request_data.get('password'))
313 request_data['re_password'] = decrypt(request_data.get('re_password'))
314 serializer_obj = RePasswordSerializer(data=request_data)
315 return result.success(serializer_obj.reset_password())
316
317
318class SendEmail(APIView):

Callers

nothing calls this directly

Calls 5

reset_passwordMethod · 0.95
decryptFunction · 0.90
getMethod · 0.45
successMethod · 0.45

Tested by

no test coverage detected