code: def send_password_reset(self, base_url=None, view_class=None, **kw):
          
  
          view = view_class or views.auth.Login
          endpoint_reset = getattr(view, "reset_password")
          endpoint_login = getattr(view, "login")
          action = "reset-password"
  
          method = __options__.get("reset_password_method", "TOKEN")
          template = __options__.get("email_templates.reset_password",
                                     "auth/reset-password.txt")
          new_password = None
  
          if method.upper() == "TOKEN":
              expires_in = __options__.get("reset_password_token_ttl", 1)
              action_token = self.create_action_token(action, expires_in)
              signed_data = self.sign_data(action, expires_in=expires_in)
              url = _url_for_email(endpoint_reset,
                                   base_url=base_url,
                                   action_token=action_token,
                                   signed_data=signed_data)
          else:
              new_password = self.reset_password()
              url = _url_for_email(endpoint_login, base_url=base_url)
  
          self.send_email(template=template,
                          action={
                              "reset_method": method.upper(),
                              "url": url,
                              "new_password": new_password
                          },
                          data=kw)
docs: Reset a password and send email
          :param user: AuthUser
          :param email: str - The auth user login email
          :param base_url: str - By default it will use the current url, base_url will allow custom url
          :param template: str - The email template
          :param method: str - token or email - The method to reset the password
          :param view_class: obj - The view instance of the login
          :param kwargs: Any data to pass
          :return: