예제 #1
0
 public static bool ValidateEmailInput(string _email)
 {
     if (StringOperations.NotEmpty(_email))
     {
         bool result = (Regex.IsMatch(_email, Keys.emailRegex, RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(250)));
         return(result);
     }
     return(false);
 }
예제 #2
0
 public static bool ValidatePasswordInput(string _pass)
 {
     if (StringOperations.NotEmpty(_pass))
     {
         bool result = (Regex.IsMatch(_pass, Keys.passwordRegex));
         return(result);
     }
     return(false);
 }