summaryrefslogtreecommitdiffstats
path: root/application/libraries/Duser/drivers/Duser_fluxbb.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-22 12:13:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-22 12:13:24 +0200
commit6ec220c0c59868c86a40cc8373fdea32879f7cb5 (patch)
treea3f9d39d947cff8e7ee5a87c846f2995cf8c50d0 /application/libraries/Duser/drivers/Duser_fluxbb.php
parentf74af98b3dcc239fa442b6615a020e10c8d1a833 (diff)
duser_fluxbb: Replace like with equals
We don't use wildcards so we don't need like. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Duser/drivers/Duser_fluxbb.php')
-rw-r--r--application/libraries/Duser/drivers/Duser_fluxbb.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/libraries/Duser/drivers/Duser_fluxbb.php b/application/libraries/Duser/drivers/Duser_fluxbb.php
index b32e2ac8e..1790e830b 100644
--- a/application/libraries/Duser/drivers/Duser_fluxbb.php
+++ b/application/libraries/Duser/drivers/Duser_fluxbb.php
@@ -23,7 +23,7 @@ class Duser_fluxbb extends Duser_Driver {
$query = $this->CI->db->query('
SELECT username, id
FROM '.$this->config['database'].'.users
- WHERE username LIKE ? AND password = ?
+ WHERE username = ? AND password = ?
', array($username, sha1($password)))->row_array();
if (!empty($query)) {
@@ -41,7 +41,7 @@ class Duser_fluxbb extends Duser_Driver {
$query = $this->CI->db->query('
SELECT id
FROM '.$this->config['database'].'.users
- WHERE username LIKE ?
+ WHERE username = ?
', array($username));
if ($query->num_rows() > 0) {