From 15f3664049d962820140bdf359a52dae5d143a0c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 25 Dec 2007 04:42:24 +0000 Subject: fixed old password problem --- lib/class/vauth.class.php | 5 ++++- lib/debug.lib.php | 2 +- login.php | 3 --- 3 files changed, 5 insertions(+), 5 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; diff --git a/lib/debug.lib.php b/lib/debug.lib.php index 6c6866ee..aac111b6 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -61,7 +61,7 @@ function check_database_inserted($dbh,$db_name) { } // Make sure the whole table is there - if (Dba::num_rows($db_results) != '6') { + if (Dba::num_rows($db_results) != '7') { return false; } diff --git a/login.php b/login.php index f518fc82..bb5a9ec5 100644 --- a/login.php +++ b/login.php @@ -119,9 +119,6 @@ if ($auth['success']) { $user->insert_ip_history(); } - // Reload the Preferences from the database - Preference::init(); - /* Make sure they are actually trying to get to this site and don't try to redirect them back into * an admin section **/ -- cgit