Example #1
0
        protected void btnLogon_Click(object sender, EventArgs e)
        {
            string username      = txtUsername.Text;
            string password      = txtPassword.Text;
            bool   authenticated = _presenter.Login(username, password);

            if (authenticated)
            {
                FormsAuthentication.RedirectFromLoginPage(username, false);
            }
            else
            {
                lblErrors.Text  = _titleToDisplay;
                lblErrors.Text += Environment.NewLine;
                lblErrors.Text += " OR Account is disabled.  Check your email address associated with the account if you have attempted to Reset password, you will need to provide the Reset Password Code to successfully change your password.  In the meantime the Account would remain disabled if you did not provide the Password Reset Code.";
            }
        }