try to set a logical default for ->can change passwords<- for new accounts. true if you force users to change passwords every x days, false if not

This commit is contained in:
Klaus Leithoff 2011-10-06 15:46:43 +00:00
parent 66ea661e08
commit cc01eda69f

View File

@ -1377,7 +1377,7 @@
$userData['status'] = 'A';
$userGroups = Array();
$userData['anonymous'] = False;
$userData['changepassword'] = True;
$userData['changepassword'] = (bool)$GLOBALS['egw_info']['server']['change_pwd_every_x_days'];
$userData['mustchangepassword'] = false;
}
$allGroups = $account->get_list('groups');