checkParams(event) {
if (event.length > 8 && event.length <= 30) {
this.passLength = true;
} else {
this.passLength = false;
}
//quantity check
if (event.search(/[0-9]/) > -1) {
this.passNumbers = true;
} else {
this.passNumbers = false;
}
//number check
if (event.search(/[!@$%&*]+/) > -1) {
this.passSpecial = true;
} else {
this.passSpecial = false;
}
//character check
if (event.search(/[a-z].*[A-Z]|[A-Z].*[a-z]/) > -1) {
this.passUpper = true;
} else {
this.passUpper = false;
}
//check upper case
if (event.search(/^\S*$/)) {
this.passSpace = false;
} else {
this.passSpace = true;
}
//check whitespace
↧
Angular one of the conditions is to check the password field for certain characters only [! @ $% & *]
↧