Skip to content
Snippets Groups Projects
Commit babf00f8 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bug -- use of undefined variable.

parent 1a242021
No related merge requests found
......@@ -57,8 +57,6 @@ class CAS extends AbstractBase
* @throws AuthException
* @return void
*/
protected function validateConfig()
{
$cas = $this->config->CAS;
......@@ -128,7 +126,6 @@ class CAS extends AbstractBase
$casauth = $this->setupCAS();
$casauth->forceAuthentication();
// Check if username is set.
$username = $casauth->getAttribute($cas->username);
if (empty($username)) {
......@@ -138,7 +135,6 @@ class CAS extends AbstractBase
// If we made it this far, we should log in the user!
$user = $this->getUserTable()->getByUsername($username);
// Has the user configured attributes to use for populating the user table?
$attribsToCheck = array(
"cat_username", "cat_password", "email", "lastname", "firstname",
......@@ -201,7 +197,7 @@ class CAS extends AbstractBase
) {
$casauth = $this->setupCAS();
if ($casauth->checkAuthentication() !== true) {
return empty($username);
return true;
}
}
return false;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment