Exemplo n.º 1
0
        public bool IsUserEntryValid(UserEntry entry)
        {
            bool validEmail = false; bool validPassword = false;

            if (email.IsValidAddress(entry.Email))
            {
                validEmail = true;
            }
            if (pw.IsValidPassword(entry.Password))
            {
                validPassword = true;
            }
            return(validEmail && validPassword);
        }