diff --git a/lib/authentication/Authenticator.inc b/lib/authentication/Authenticator.inc index b8c28c7..6e58a0f 100644 --- a/lib/authentication/Authenticator.inc +++ b/lib/authentication/Authenticator.inc @@ -40,7 +40,9 @@ class Authenticator { $aUserDetails = array(); // retrieve the userID - $iUserID = lookupID($default->users_table, "BINARY username", "$sUserName"); + $sSQL = "SELECT id FROM $default->users_table WHERE username = ?"; + $aParams = array($sUserName); + $iUserID = DBUtil::getOneResultKey(array($sSQL, $aParams), 'id'); if ($iUserID) { $oUser = & User::get($iUserID);