|
|
|
@ -35,71 +35,70 @@ export class ChangePasswordComponent implements OnInit {
|
|
|
|
public OLD_PASSWORD: boolean = false;
|
|
|
|
public OLD_PASSWORD: boolean = false;
|
|
|
|
|
|
|
|
|
|
|
|
public recentPasswordNote = {
|
|
|
|
public recentPasswordNote = {
|
|
|
|
yellowImg: '../assets/icon/yellow.svg',
|
|
|
|
yellowImg: '../assets/imgs/mohemm-action/info.png',
|
|
|
|
text: 'Do not user recent password.',
|
|
|
|
text: this.ts.trPK('login', 'current-password-validation')
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isLowerCase = {
|
|
|
|
public isLowerCase = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'At least one lowercase.',
|
|
|
|
text: this.ts.trPK('login', 'lowercase-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isUpperCase = {
|
|
|
|
public isUpperCase = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'At least one uppdercase.',
|
|
|
|
text: this.ts.trPK('login', 'uppercase-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isLetterCase = {
|
|
|
|
public isLetterCase = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'At least one Letter.',
|
|
|
|
text: this.ts.trPK('login', 'letter-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isHasDigit = {
|
|
|
|
public isHasDigit = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'At least one nomeric.',
|
|
|
|
text: this.ts.trPK('login', 'numerica-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isMinLength = {
|
|
|
|
public isMinLength = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'Minimum 8 characters.',
|
|
|
|
text: this.ts.trPK('login', 'min-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isRepeatedLetter = {
|
|
|
|
public isRepeatedLetter = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'Do not add repeating letters.',
|
|
|
|
text: this.ts.trPK('login', 'repeating-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public isContainSpecialChar = {
|
|
|
|
public isContainSpecialChar = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'It should contain special character.',
|
|
|
|
text: this.ts.trPK('login', 'special-character-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public confirmMatchNew = {
|
|
|
|
public confirmMatchNew = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'Confirm Password does not match.',
|
|
|
|
text: this.ts.trPK('login', 'not-match-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public userNameMatchNew = {
|
|
|
|
public userNameMatchNew = {
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
blankImg: '../assets/icon/blank.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
greenImg: '../assets/icon/green.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
redImg: '../assets/imgs/close.svg',
|
|
|
|
text: 'password should not contain the user name.',
|
|
|
|
text: this.ts.trPK('login', 'contain-username-password-validation'),
|
|
|
|
isMatch: false
|
|
|
|
isMatch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
public userId: string;
|
|
|
|
public userId: string;
|
|
|
|
|