mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fix not working changing password for account in SQL
This commit is contained in:
parent
369bddef2f
commit
3fbd2dcdc8
@ -167,7 +167,7 @@ class admin_account
|
|||||||
}
|
}
|
||||||
if($content['account_passwd'])
|
if($content['account_passwd'])
|
||||||
{
|
{
|
||||||
// Don't put password into history
|
// Don't put password into history, also stops return below to bail out for only password changes
|
||||||
$old['account_passwd'] = '';
|
$old['account_passwd'] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -234,6 +234,7 @@ class admin_account
|
|||||||
$cmd = new admin_cmd_edit_user(array(
|
$cmd = new admin_cmd_edit_user(array(
|
||||||
'account' => (int)$content['account_id'],
|
'account' => (int)$content['account_id'],
|
||||||
'set' => $account,
|
'set' => $account,
|
||||||
|
'password' => $account['account_passwd'],
|
||||||
'old' => $old,
|
'old' => $old,
|
||||||
)+(array)$content['admin_cmd']);
|
)+(array)$content['admin_cmd']);
|
||||||
$cmd->run();
|
$cmd->run();
|
||||||
|
@ -198,7 +198,7 @@ abstract class admin_cmd
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* runs the command either immediatly ($time=null) or shedules it for the given time
|
* runs the command either immediately ($time=null) or schedules it for the given time
|
||||||
*
|
*
|
||||||
* The command will be written to the database queue, incl. its scheduled start time or execution status
|
* The command will be written to the database queue, incl. its scheduled start time or execution status
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user