Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active March 6, 2016 11:07
Show Gist options
  • Save andevsoftware/fba77b9163ecb81e95d2 to your computer and use it in GitHub Desktop.
Save andevsoftware/fba77b9163ecb81e95d2 to your computer and use it in GitHub Desktop.
TSValidate.Validators.Confirmation
import Confirmation = TSValidate.Validator.Confirmation;
validator.add('password', new Confirmation()
.against('confirmPassword')
.message('Password doesn\'t match confirmation')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment