Skip to content

Commit

Permalink
fix(package): removed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Apr 20, 2019
1 parent 2980ca2 commit c4a87fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
containAtCustomChars: boolean;

formGroup: FormGroup;

// TO ACCESS VIA CONTENT CHILD
passwordFormControl: FormControl = new FormControl();
passwordConfirmationFormControl: FormControl = new FormControl();

validatorsArray: ValidatorFn[] = [];

private _strength = 0;
Expand All @@ -64,7 +67,6 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
matPasswordStrengthValidator = new MatPasswordStrengthValidator();

ngOnInit(): void {
console.log('password strength comp. on init');
this.setRulesAndValidators();
this.formGroup = new FormGroup({
'password': this.passwordFormControl,
Expand Down Expand Up @@ -159,7 +161,6 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
}

setRulesAndValidators(): void {
console.log('on setting rules');
this.passwordConfirmationFormControl
.setValidators(Validators.compose([
Validators.required, this.matPasswordStrengthValidator.confirm(this.password)
Expand Down
1 change: 0 additions & 1 deletion src/module/validator/mat-password-strength-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class MatPasswordStrengthValidator {
}

confirm(password: string): ValidatorFn {
console.log('password to confirm: ', password);
const validator = (control: AbstractControl): { [key: string]: any } => {
this.isUndefinedOrEmpty(control);
if (control.value !== password) {
Expand Down

0 comments on commit c4a87fe

Please sign in to comment.