code: def reset_password(self, token=None, login_user=None):
          
          pwcol = self.options['password_column']
          if not token:
              if "token" in request.view_args:
                  token = request.view_args["token"]
              elif "token" in request.values:
                  token = request.values["token"]
              else:
                  raise OptionMissingError(("Missing 'token' option or 'token' view arg "
                                            "or 'token' GET paramater in 'reset_password' action"))
  
          user = self.find_by_token(token, salt="password-reset", max_age=self.options["reset_password_ttl"])
          if user is None:
              if self.options["reset_password_error_message"]:
                  flash(self.options["reset_password_error_message"], "error")
              current_context.exit(trigger_action_group="reset_password_failed")
  
          self.update_password_from_form(user)
          self.reset_password_signal.send(self, user=user)
          if (login_user is None and self.options["login_user_on_reset_password"]) or login_user:
              flask_login.login_user(user)
          return user
docs: Resets the password of the user identified by the token