1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 18:29:40 +02:00

fixed old password problem

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-12-25 04:42:24 +00:00
parent c31b6f050c
commit 15f3664049
3 changed files with 5 additions and 5 deletions

View file

@ -484,6 +484,10 @@ class vauth {
return false; 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()"; $sql = "SELECT version()";
$db_results = Dba::query($sql); $db_results = Dba::query($sql);
@ -513,7 +517,6 @@ class vauth {
} }
} // if prevent_multiple_logins } // if prevent_multiple_logins
$results['type'] = 'mysql'; $results['type'] = 'mysql';
$results['success'] = true; $results['success'] = true;

View file

@ -61,7 +61,7 @@ function check_database_inserted($dbh,$db_name) {
} }
// Make sure the whole table is there // Make sure the whole table is there
if (Dba::num_rows($db_results) != '6') { if (Dba::num_rows($db_results) != '7') {
return false; return false;
} }

View file

@ -119,9 +119,6 @@ if ($auth['success']) {
$user->insert_ip_history(); $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 /* Make sure they are actually trying to get to this site and don't try to redirect them back into
* an admin section * an admin section
**/ **/