diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-25 04:42:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-25 04:42:24 +0000 |
commit | 15f3664049d962820140bdf359a52dae5d143a0c (patch) | |
tree | 9429fbfdc46532371d8cb348eba4919458359300 /lib/class | |
parent | c31b6f050ce4b52ef4e2fb842fd51a40a6bc196d (diff) | |
download | ampache-15f3664049d962820140bdf359a52dae5d143a0c.tar.gz ampache-15f3664049d962820140bdf359a52dae5d143a0c.tar.bz2 ampache-15f3664049d962820140bdf359a52dae5d143a0c.zip |
fixed old password problem
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/vauth.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php index d8033b36..761e5a65 100644 --- a/lib/class/vauth.class.php +++ b/lib/class/vauth.class.php @@ -484,6 +484,10 @@ class vauth { return false; } + // This has to still be here because lots of people use old_password in their config file + $sql = "SELECT `password` FROM `user` WHERE `username`='$username'"; + $db_results = Dba::query($sql); + $row = Dba::fetch_assoc($db_results); $sql = "SELECT version()"; $db_results = Dba::query($sql); @@ -513,7 +517,6 @@ class vauth { } } // if prevent_multiple_logins - $results['type'] = 'mysql'; $results['success'] = true; |