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