code: def send_reset_password_link(request):
      '''
      Send email with reset password link.
      '''
      if not registration_settings.RESET_PASSWORD_VERIFICATION_ENABLED:
          raise Http404()
      serializer = SendResetPasswordLinkSerializer(data=request.data)
      serializer.is_valid(raise_exception=True)
      login = serializer.validated_data['login']
  
      user = None
      for login_field in get_login_fields():
          user = get_user_by_lookup_dict(
              {login_field: login}, default=None, require_verified=False)
          if user:
              break
  
      if not user:
          raise UserNotFound()
  
      signer = ResetPasswordSigner({
          'user_id': user.pk,
      }, request=request)
  
      template_config = (
          registration_settings.RESET_PASSWORD_VERIFICATION_EMAIL_TEMPLATES)
      send_verification_notification(user, signer, template_config)
  
      return get_ok_response('Reset link sent'f send_reset_password_link(request):
      '''
      Send email with reset password link.
      '''
      if not registration_settings.RESET_PASSWORD_VERIFICATION_ENABLED:
          raise Http404()
      serializer = SendResetPasswordLinkSerializer(data=request.data)
      serializer.is_valid(raise_exception=True)
      login = serializer.validated_data['login']
  
      user = None
      for login_field in get_login_fields():
          user = get_user_by_lookup_dict(
              {login_field: login}, default=None, require_verified=False)
          if user:
              break
  
      if not user:
          raise UserNotFound()
  
      signer = ResetPasswordSigner({
          'user_id': user.pk,
      }, request=request)
  
      template_config = (
          registration_settings.RESET_PASSWORD_VERIFICATION_EMAIL_TEMPLATES)
      send_verification_notification(user, signer, template_config)
  
      return get_ok_response('Reset link sent')
docs: Send email with reset password link.