Пример #1
0
        // Properties

        // Methods
        public bool Authenticate(string email, string password)
        {
            User foo = userhandler.FindUserByEmail(email);

            if (foo != null)
            {
                if (foo.Password == password)
                {
                    return(true);
                }
                else
                {
                    System.Windows.Forms.MessageBox.Show(@"Foute email/wachtwoord combinatie");
                    return(false);
                }
            }
            else
            {
                System.Windows.Forms.MessageBox.Show(@"Email niet gevonden");
                return(false);
            }
        }