(self, request: Request)
| 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 | |
| 370 | class ResetCurrentUserPasswordView(APIView): |
nothing calls this directly
no test coverage detected