N°2574 - enable Password expiry

This commit is contained in:
bruno DA SILVA
2020-01-06 12:14:34 +01:00
parent b0c76346a5
commit e716fb118b
2 changed files with 15 additions and 1 deletions

View File

@@ -53,4 +53,6 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:UserLocal/Attribute:password_renewed_date+' => 'When the password was last changed',
'Error:UserLocalPasswordValidator:UserPasswordPolicyRegex:ValidationFailed' => 'Password must be at least 8 characters and include uppercase, lowercase, numeric and special characters.',
'UserLocal:password:expiration' => 'The fields below require an extension'
));

View File

@@ -96,7 +96,19 @@ class UserLocal extends UserInternal
MetaModel::Init_AddAttribute(new AttributeDate("password_renewed_date", array("allowed_values"=>null, "sql"=>"password_renewed_date", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
// Display lists
MetaModel::Init_SetZListItems('details', array('contactid', 'org_id', 'email', 'login', 'password', 'expiration', 'password_renewed_date', 'language', 'status', 'profile_list', 'allowed_org_list')); // Attributes to be displayed for the complete details
MetaModel::Init_SetZListItems('details',
array(
'col:col1' =>
array(
'contactid', 'org_id', 'email', 'login', 'password', 'language', 'status', 'profile_list', 'allowed_org_list',
),
'col:col2' =>
array(
'fieldset:UserLocal:password:expiration' => array('expiration', 'password_renewed_date',),
),
)
); // Attributes to be displayed for the complete details
MetaModel::Init_SetZListItems('list', array('first_name', 'last_name', 'login', 'org_id')); // Attributes to be displayed for a list
// Search criteria
MetaModel::Init_SetZListItems('standard_search', array('login', 'contactid', 'status', 'org_id')); // Criteria of the std search form