Skip to content

Commit 7e2c0be

Browse files
author
Chris Kacerguis
committed
closes #336
1 parent b5c8da4 commit 7e2c0be

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

application/libraries/REST_Controller.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,33 +1260,28 @@ protected function _perform_ldap_auth($username = '', $password = null)
12601260
protected function _perform_library_auth($username = '', $password = null)
12611261
{
12621262
if (empty($username)) {
1263-
log_message('debug', 'Library Auth: failure, empty username');
1264-
1263+
log_message('error', 'Library Auth: failure, empty username');
12651264
return false;
12661265
}
12671266

1268-
$auth_library_class = strtolower($this->config->item('auth_library_class'));
1269-
$auth_library_function = strtolower($this->config->item('auth_library_function'));
1267+
$auth_library_class = strtolower($this->config->item('auth_library_class'));
1268+
$auth_library_function = strtolower($this->config->item('auth_library_function'));
12701269

12711270
if (empty($auth_library_class)) {
12721271
log_message('debug', 'Library Auth: failure, empty auth_library_class');
1273-
12741272
return false;
12751273
}
12761274

12771275
if (empty($auth_library_function)) {
12781276
log_message('debug', 'Library Auth: failure, empty auth_library_function');
1279-
12801277
return false;
12811278
}
12821279

1283-
if (!is_callable(array($this->$auth_library_class, $auth_library_function))) {
1284-
1280+
if (!is_callable(array($auth_library_class, $auth_library_function))) {
12851281
$this->load->library($auth_library_class);
1286-
12871282
}
12881283

1289-
return $this->$auth_library_class->$auth_library_function($username, $password);
1284+
return $auth_library_class->$auth_library_function($username, $password);
12901285
}
12911286

12921287
/**

0 commit comments

Comments
 (0)