Ejemplo n.º 1
0
 private void btnViewError_Click(object sender, EventArgs e)
 {
     if (_devAuthenticationManager.AuthenticateUser(txtPassword.Text) == AuthenticationStatus.Authenticated)
     {
         _devAuthenticationManager.LogIn(HttpContext.Current);
         ProcessTestCommand();
         phAuthenticated.Visible = true;
         phAuthRequired.Visible  = false;
     }
     else
     {
         lblResponse.Text = "The password is incorrect.";
     }
 }
Ejemplo n.º 2
0
 public ActionResult ServerError(string password)
 {
     return(_devAuthenticationManager.AuthenticateUser(password) == AuthenticationStatus.Authenticated
         ? ServerError(Session[ErrorReportSessionKey] as ErrorReport, _devAuthenticationManager.IsLoggedIn(HttpContext))
         : ServerError(null, false));
 }