Created
February 22, 2016 02:18
-
-
Save etoxin/3870aa522c1d3b44a3b6 to your computer and use it in GitHub Desktop.
Salesforce Password validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.validator.addMethod("passwordCheck", function (value, element) { | |
return this.optional(element) || /((?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%-_=+<>]).{8,30})/g.test(value); | |
}, "Field must contain only letters, numbers, or dashes."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment