Reset your Password

@if (resetForm.controls['password'].touched && resetForm.controls['password'].errors) { @if (resetForm.controls['password'].dirty && resetForm.hasError('required' , 'password')){ *New Password is required } @if (resetForm.hasError('minlength' , 'password')){ *Password must be at least 10 characters long } @if (resetForm.hasError('uppercase' , 'password')){ *Password must contain at least one uppercase letter } @if (resetForm.hasError('lowercase' , 'password')){ *Password must contain at least one lowercase letter } @if (resetForm.hasError('number' , 'password')){ *Password must contain at least one number } @if (resetForm.hasError('special' , 'password')){ *Password must contain at least one special character } }
@if (resetForm.controls['confirmPassword'].dirty && resetForm.hasError('required' , 'confirmPassword')){ *Confirm Password is required } @if (resetForm.hasError('ConfirmPasswordValidator' , 'confirmPassword')){ *Password doesn't match }