Пример #1
0
 private static bool CheckPassword(string password)
 {
     return(password.Length <= 40 && FactoryUtils.CheckInput(password, 7, 40) != null);
 }
Пример #2
0
 private static bool CheckFirstname(string firstname)
 {
     return(firstname.Length <= 40 && FactoryUtils.CheckInput(firstname, 1, 40, @"^[a-zA-Z]*$") != null);
 }
Пример #3
0
 private static bool CheckUsername(string username)
 {
     return(username.Length <= 40 && FactoryUtils.CheckInput(username, 7, 40, @"^[a-zA-Z0-9_.@-]*$") != null);
 }