summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-22 12:17:06 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-22 12:17:06 +0200
commit260da3941fafbe40877aa2ecb52169b460e0e644 (patch)
tree5c2e1bc4f5df6c17c949464df9462773ccae9325
parent6ec220c0c59868c86a40cc8373fdea32879f7cb5 (diff)
duser_db: Remove case sensitive username check
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/libraries/Duser/drivers/Duser_db.php6
1 files changed, 1 insertions, 5 deletions
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;
}