public function authenticate($email, $password)
    {
        // If we're operating in secure-only mode.
        if ($this->config->getCookieSslOnly() && !isset($_SERVER['HTTPS'])) {
            echo 'Connection is insecure, login cannot proceed.';
            die();
        }

        // Check credentials.
        if ($this->config->getAdminEmail() != $email
            || !Encryption::verify($password, $this->config->getAdminPasswordHash()))
        {
            return false; // Authentication failure.
        }

        // Set cookie to newly dispensed token.
        $this->setCookieToken($this->dispenseToken());

        return true;
    }