Skip to content
Snippets Groups Projects
Commit 6470e414 authored by Brett Bieber's avatar Brett Bieber
Browse files

Remove the login/authentication methods, users will not be logging in

parent ad165d7e
Branches
Tags
No related merge requests found
......@@ -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.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment