allow the option mustchangepassword to be set via admin_cmd_edit_user

This commit is contained in:
Klaus Leithoff 2010-10-18 13:09:38 +00:00
parent 1e1df2fe2c
commit ada6c74efe

View File

@ -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['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)
{