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:
parent
c31b6f050c
commit
15f3664049
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
**/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue