mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
allow the option mustchangepassword to be set via admin_cmd_edit_user
This commit is contained in:
parent
1e1df2fe2c
commit
ada6c74efe
@ -90,6 +90,10 @@ class admin_cmd_edit_user extends admin_cmd_change_pw
|
|||||||
|
|
||||||
$data['changepassword'] = admin_cmd::parse_boolean($data['changepassword'],$this->account ? null : true);
|
$data['changepassword'] = admin_cmd::parse_boolean($data['changepassword'],$this->account ? null : true);
|
||||||
$data['anonymous'] = admin_cmd::parse_boolean($data['anonymous'],$this->account ? null : false);
|
$data['anonymous'] = admin_cmd::parse_boolean($data['anonymous'],$this->account ? null : false);
|
||||||
|
if ($data['mustchangepassword'] && $data['changepassword'])
|
||||||
|
{
|
||||||
|
$data['account_lastpwd_change']=0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$data['account_primary_group'] && $this->account)
|
if (!$data['account_primary_group'] && $this->account)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user