public function handlePasswordReset(Request $httpRequest)
    {
        $this->httpRequest = $httpRequest;

        // Check if a valid reset link is present
        $this->checkResetLink();

        // Check if the user already has a password reset session
        $resetData = $this->session->get("pwreset");

        if ($resetData === null) {
            $this->beginPasswordReset();
        } else {
            $this->finishPasswordReset($resetData);
        }
    }