adding additional validation Regexes to PasswordValidaiton

This commit is contained in:
Jeff Potter 2014-11-26 15:01:49 -07:00
parent 72dd2ed5c1
commit 574c3c6dfb
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,14 @@ import Foundation
class PasswordValidation : Validation {
// Alternative Regexes
// 8 characters. One uppercase. One Lowercase. One number.
// var PASSWORD_REGEX = "^(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[a-z]).{8,}$"
//
// no length. One uppercase. One lowercae. One number.
// var PASSWORD_REGEX = "^(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[a-z]).*?$"
// 8 characters. one uppercase
var PASSWORD_REGEX = "^(?=.*?[A-Z]).{8,}$"