예제 #1
0
        protected bool CheckNext(string email, string password)
        {
            if (next == null)
            {
                return(true);
            }

            return(next.Check(email, password));
        }
예제 #2
0
        protected bool CheckNext(string username, string password)
        {
            if (_next == null)
            {
                return(true);
            }

            return(_next.Check(username, password));
        }
예제 #3
0
        protected bool CheckNext(string query)
        {
            if (next == null)
            {
                return(true);
            }

            return(next.Check(query));
        }
예제 #4
0
 public Boolean LogIn(string email, string password)
 {
     if (middleware.Check(email, password))
     {
         Console.WriteLine("Usuário autorizado com sucesso");
         Console.WriteLine("Seja bem vindo!");
         return(true);
     }
     return(false);
 }
예제 #5
0
        public bool LogIn(string username, string password)
        {
            if (_middleware.Check(username, password))
            {
                Console.WriteLine("Usuário autorizado com sucesso");
                Console.WriteLine("Seja Bem-vindo");
                return(true);
            }

            return(false);
        }
예제 #6
0
        public bool LogIn(string email, string password)
        {
            if (middleware.Check(email, password))
            {
                Console.WriteLine("Usuário autenticado com sucesso.");
                Console.WriteLine("Seja bem-vindo(a).");

                return(true);
            }

            return(false);
        }
예제 #7
0
 public bool Validate(string query)
 {
     return(_middleware.Check(query));
 }