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:58:27 +00:00
parent 6d083211e9
commit 55c2133509

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');