summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-13 15:51:16 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-13 15:51:16 +0000
commit5d6e06fa17d5e155a01e14a9e6ceb3abf3d1b69f (patch)
treee3d1084f5bd98e18d6fda60e5978a92396f8495c /modules
parentac70ee39d84aefa6f34e35e9156c279fe1bbfe32 (diff)
downloadampache-5d6e06fa17d5e155a01e14a9e6ceb3abf3d1b69f.tar.gz
ampache-5d6e06fa17d5e155a01e14a9e6ceb3abf3d1b69f.tar.bz2
ampache-5d6e06fa17d5e155a01e14a9e6ceb3abf3d1b69f.zip
yea I am an idiot
Diffstat (limited to 'modules')
-rw-r--r--modules/vauth/auth.lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/vauth/auth.lib.php b/modules/vauth/auth.lib.php
index 8061c17d..7c974d7c 100644
--- a/modules/vauth/auth.lib.php
+++ b/modules/vauth/auth.lib.php
@@ -70,7 +70,7 @@ function vauth_mysql_auth($username,$password) {
$password_check_sql = "OLD_PASSWORD('$password')";
}
- $sql = "SELECT username FROM user WHERE username='$username' AND $password_check_sql";
+ $sql = "SELECT username FROM user WHERE username='$username' AND password=$password_check_sql";
$db_results = mysql_query($sql, vauth_dbh());
$results = mysql_fetch_assoc($db_results);