How to use the @ngx-validate/core.comparePasswords function in @ngx-validate/core

To help you get started, we’ve selected a few @ngx-validate/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abpframework / abp / npm / ng-packs / packages / account / src / lib / components / change-password / change-password.component.ts View on Github external
ngOnInit(): void {
    this.form = this.fb.group(
      {
        password: ['', required],
        newPassword: ['', required],
        repeatNewPassword: ['', required],
      },
      {
        validators: [comparePasswords(PASSWORD_FIELDS)],
      },
    );
  }
github abpframework / abp / npm / ng-packs / dist / theme-shared / esm2015 / lib / components / change-password / change-password.component.js View on Github external
ngOnInit() {
        this.form = this.fb.group({
            password: ['', required],
            newPassword: ['', required],
            repeatNewPassword: ['', required],
        }, {
            validators: [comparePasswords(['newPassword', 'repeatNewPassword'])],
        });
    }
    /**
github abpframework / abp / npm / ng-packs / dist / theme-shared / esm2015 / lib / components / change-password / change-password.component.js View on Github external
ngOnInit() {
        this.form = this.fb.group({
            password: ['', required],
            newPassword: ['', required],
            repeatNewPassword: ['', required],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    }
    /**
github abpframework / abp / npm / ng-packs / dist / account / esm2015 / lib / components / change-password / change-password.component.js View on Github external
requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];
        }
        this.form = this.fb.group({
            password: ['', required],
            newPassword: [
                '',
                {
                    validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],
                },
            ],
            repeatNewPassword: [
                '',
                { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },
            ],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    }
    /**
github abpframework / abp / npm / ng-packs / dist / account / fesm5 / abp-ng.account.js View on Github external
requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];
        }
        this.form = this.fb.group({
            password: ['', required$2],
            newPassword: [
                '',
                {
                    validators: [required$2, validatePassword(passwordRulesArr), minLength$2(requiredLength), maxLength$2(32)],
                },
            ],
            repeatNewPassword: [
                '',
                { validators: [required$2, validatePassword(passwordRulesArr), minLength$2(requiredLength), maxLength$2(32)] },
            ],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    };
    /**
github abpframework / abp / npm / ng-packs / dist / theme-shared / esm5 / lib / components / change-password / change-password.component.js View on Github external
function () {
        this.form = this.fb.group({
            password: ['', required],
            newPassword: ['', required],
            repeatNewPassword: ['', required],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    };
    /**
github abpframework / abp / npm / ng-packs / packages / account / src / lib / components / change-password / change-password.component.ts View on Github external
},
        ],
        repeatNewPassword: [
          '',
          {
            validators: [
              required,
              validatePassword(passwordRulesArr),
              minLength(requiredLength),
              maxLength(32),
            ],
          },
        ],
      },
      {
        validators: [comparePasswords(PASSWORD_FIELDS)],
      },
    );
  }
github abpframework / abp / npm / ng-packs / dist / account / esm5 / lib / components / change-password / change-password.component.js View on Github external
requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];
        }
        this.form = this.fb.group({
            password: ['', required],
            newPassword: [
                '',
                {
                    validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)],
                },
            ],
            repeatNewPassword: [
                '',
                { validators: [required, validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(32)] },
            ],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    };
    /**
github abpframework / abp / npm / ng-packs / dist / account / fesm5 / abp-ng.account.js View on Github external
function () {
        this.form = this.fb.group({
            password: ['', required$2],
            newPassword: ['', required$2],
            repeatNewPassword: ['', required$2],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    };
    /**
github abpframework / abp / npm / ng-packs / dist / theme-shared / fesm5 / abp-ng.theme.shared.js View on Github external
function () {
        this.form = this.fb.group({
            password: ['', required],
            newPassword: ['', required],
            repeatNewPassword: ['', required],
        }, {
            validators: [comparePasswords(PASSWORD_FIELDS)],
        });
    };
    /**

@ngx-validate/core

<p align="center"> <img src="https://github.com/ng-turkey/ngx-validate/workflows/Lint%20&%20Test%20&%20Build/badge.svg"/> <a href="https://codeclimate.com/github/ng-turkey/ngx-validate/maintainability"><img src="https://api.codeclimate.com/v1/badges/1

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages