Exemplo n.º 1
0
        public Boolean login(string email, string password)
        {
            Boolean sucesso = false;

            if (uDAO.containsKey(email))
            {
                if (uDAO.passwordMatch(email, password))
                {
                    sucesso   = true;
                    this.user = uDAO.get(email);
                }
            }

            Console.WriteLine(sucesso.ToString());
            return(sucesso);
        }