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

Method post

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

Source from the content-addressed store, hash-verified

362 @log(menu='User management', operate='Send email to current user',
363 get_operation_object=lambda r, k: {'name': r.user.username})
364 def post(self, request: Request):
365 serializer_obj = SendEmailSerializer(data={'email': request.user.email, 'type': "reset_password"})
366 if serializer_obj.is_valid(raise_exception=True):
367 return result.success(serializer_obj.send())
368
369
370class ResetCurrentUserPasswordView(APIView):

Callers

nothing calls this directly

Calls 4

is_validMethod · 0.95
sendMethod · 0.95
SendEmailSerializerClass · 0.90
successMethod · 0.45

Tested by

no test coverage detected