From 260da3941fafbe40877aa2ecb52169b460e0e644 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 22 Sep 2013 12:17:06 +0200 Subject: duser_db: Remove case sensitive username check Signed-off-by: Florian Pritz --- application/libraries/Duser/drivers/Duser_db.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'application/libraries/Duser/drivers') diff --git a/application/libraries/Duser/drivers/Duser_db.php b/application/libraries/Duser/drivers/Duser_db.php index 0f4298258..a58b5a298 100644 --- a/application/libraries/Duser/drivers/Duser_db.php +++ b/application/libraries/Duser/drivers/Duser_db.php @@ -28,11 +28,7 @@ class Duser_db extends Duser_Driver { WHERE `username` = ? ', array($username))->row_array(); - if (!isset($query["username"]) || $query["username"] !== $username) { - return false; - } - - if (!isset($query["password"])) { + if (empty($query)) { return false; } -- cgit v1.2.3-24-g4f1b