mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
bugfix in password migration
This commit is contained in:
parent
79c9507039
commit
bd9f34dbd3
@ -65,9 +65,10 @@
|
||||
if(!$this->compare_password($passwd,$this->db->f('account_pwd'),$this->type,strtolower($username)))
|
||||
{
|
||||
// do we have to migrate an old password ?
|
||||
if($GLOBALS['egw_info']['server']['passwd_migration_allowed'])
|
||||
if($GLOBALS['egw_info']['server']['pwd_migration_allowed'])
|
||||
{
|
||||
foreach($GLOBALS['egw_info']['server']['passwd_migration_types'] as $type)
|
||||
if(!is_array($GLOBALS['egw_info']['server']['pwd_migration_types'])) return false;
|
||||
foreach($GLOBALS['egw_info']['server']['pwd_migration_types'] as $handle => $type)
|
||||
{
|
||||
if($this->compare_password($passwd,$this->db->f('account_pwd'),$type,strtolower($username)))
|
||||
{
|
||||
@ -76,6 +77,7 @@
|
||||
$this->_update_passwd($encrypted_passwd,$passwd,$account_id,false,__FILE__);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user