Skip to content
Snippets Groups Projects
Commit 088923f0 authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FEAT #7659 password history desc added in views

parent 90137740
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ export class PasswordModificationComponent implements OnInit {
complexityNumber: { enabled: false, value: 0 },
complexitySpecial: { enabled: false, value: 0 },
renewal: { enabled: false, value: 0 },
historyLastUse: {enabled:false, value:0},
};
passwordModel: any = {
......@@ -137,6 +138,12 @@ export class PasswordModificationComponent implements OnInit {
this.passwordRules.renewal.enabled = rule.enabled;
this.passwordRules.renewal.value = rule.value;
this.OtherRuleText = this.lang['password' + rule.label] + ' <b>' + rule.value + ' ' + this.lang.days + '</b>. ' + this.lang['password2' + rule.label];
} else if (rule.label == 'historyLastUse') {
this.passwordRules.historyLastUse.enabled = rule.enabled;
this.passwordRules.historyLastUse.value = rule.value
if (rule.enabled) {
ruleTextArr.push(this.lang['passwordhistoryLastUseDesc'] + ' ' + rule.value + ' ' + this.lang['passwordhistoryLastUseDesc2']);
}
}
});
......
......@@ -51,6 +51,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit {
complexityNumber: { enabled: false, value: 0 },
complexitySpecial: { enabled: false, value: 0 },
renewal: { enabled: false, value: 0 },
historyLastUse: {enabled:false, value:0},
};
signatureModel: any = {
base64: "",
......@@ -782,6 +783,12 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit {
this.passwordRules.renewal.enabled = rule.enabled;
this.passwordRules.renewal.value = rule.value;
this.OtherRuleText = this.lang['password' + rule.label] + ' <b>' + rule.value + ' ' + this.lang.days + '</b>. ' + this.lang['password2' + rule.label];
} else if (rule.label == 'historyLastUse') {
this.passwordRules.historyLastUse.enabled = rule.enabled;
this.passwordRules.historyLastUse.value = rule.value
if (rule.enabled) {
ruleTextArr.push(this.lang['passwordhistoryLastUseDesc'] + ' ' + rule.value + ' ' + this.lang['passwordhistoryLastUseDesc2']);
}
}
});
......
......@@ -605,6 +605,8 @@ export const LANG_FR = {
"passwordcomplexityNumberRequired" : "Chiffre requis",
"passwordcomplexitySpecialRequired" : "Caractère spécial requis",
"passwordrenewalRequired" : "Expiration du mot de passe",
"passwordhistoryLastUseDesc" : "Vous ne pouvez utilisez que vos",
"passwordhistoryLastUseDesc2" : "derniers mots de passe",
"passwordhistoryLastUseRequired" : "Nombre de mot passe sauvegardé",
"passwordlockAttemptsRequired" : "Nombre de tentative de connexion",
"passwordlockTimeRequired" : "Temps de blocage",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment