From 6470e4144d9b0e5e5f936700e77d6968a2cac214 Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Mon, 29 Apr 2013 12:02:54 -0500
Subject: [PATCH] Remove the login/authentication methods, users will not be
 logging in

---
 src/UNL/Catalog.php | 52 ---------------------------------------------
 1 file changed, 52 deletions(-)

diff --git a/src/UNL/Catalog.php b/src/UNL/Catalog.php
index d0cc395..09de323 100644
--- a/src/UNL/Catalog.php
+++ b/src/UNL/Catalog.php
@@ -58,30 +58,6 @@ class UNL_Catalog
         $this->determineView();
     }
     
-    /**
-     * This function is used to check if a user has previously started
-     * an authenticated session. If there was a previously authenticated
-     * session (checked using the session variable $_SESSION['authenticated_user'],
-     * it will call the login function on this object.
-     * 
-     * @return bool
-     */
-    public function checkAuthentication()
-    {
-        if (isset($_COOKIE['catalog_mw__session'])) {
-           session_id($_COOKIE['catalog_mw__session']); 
-        }
-        session_set_cookie_params( 0, '/', '', false);
-        session_cache_limiter('private, must-revalidate');
-        @session_start();
-        if (isset($_SESSION['authenticated_user'])
-            && $_SESSION['authenticated_user'] == true) {
-            return $this->login();
-        } else {
-            return false;
-        }
-    }
-    
     /**
      * Returns an ORM object for a table within the catalog.
      * 
@@ -349,34 +325,6 @@ class UNL_Catalog
         $this->p->maincontentarea .= $savvy->render($listing);
     }
     
-    /**
-     * Indicate that the current user is successfully logged in.
-     * 
-     * @return true
-     */
-    public function login()
-    {
-        if (isset($_COOKIE['catalog_mw__session'])) {
-           session_id($_COOKIE['catalog_mw__session']); 
-        }
-        session_set_cookie_params( 0, '/', '', false);
-        session_cache_limiter('private, must-revalidate');
-        @session_start();
-        $this->loggedin                 = true;
-        $_SESSION['authenticated_user'] = true;
-        return true;
-    }
-    
-    /**
-     * Checks if the current user is logged in.
-     * 
-     * @return bool
-     */
-    public function isLoggedIn()
-    {
-        return $this->loggedin;
-    }
-    
     /**
      * Initializes a default HTML template with information to display the catalog.
      */
-- 
GitLab