Debugging more

This commit is contained in:
Rick Falkvinge
2012-11-24 23:23:31 +00:00
parent 805759eb31
commit 15160a014a
2 changed files with 8 additions and 3 deletions
+4
View File
@@ -695,6 +695,10 @@ public partial class Pages_v5_Init_Default : System.Web.UI.Page
if (expectedPersonOne != null)
{
StreamWriter temp = new StreamWriter("/tmp/actdebug1.txt");
temp.WriteLine("Authentication was successful in ButtonLogin_Click");
temp.Close();
FormsAuthentication.RedirectFromLoginPage("1,1", true);
Response.Redirect("/", true);
}
+4 -3
View File
@@ -63,14 +63,15 @@ namespace Activizr.Pages.Security
}
catch (Exception exception)
{
StreamWriter temp = new StreamWriter("/tmp/actdebug2.txt");
temp.WriteLine(exception.ToString());
temp.Close();
System.Diagnostics.Debug.WriteLine(exception.ToString());
this.LabelLoginFailed.Text = exception.ToString();
this.LabelLoginFailed.Visible = true;
this.TextLogin.Focus();
StreamWriter temp = new StreamWriter("/tmp/actdebug.txt");
temp.WriteLine(exception.ToString());
temp.Close();
}
}
}