Bug was in Varnish config - removing debug code
This commit is contained in:
@@ -18,13 +18,6 @@ namespace Activizr
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// DEbug
|
||||
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "Master page Page_Load");
|
||||
}
|
||||
|
||||
// Event subscriptions
|
||||
|
||||
this.LanguageSelector.LanguageChanged += new EventHandler(LanguageSelector_LanguageChanged);
|
||||
@@ -41,11 +34,6 @@ namespace Activizr
|
||||
{
|
||||
if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://live.activizr.com") && !Request.Url.ToString().StartsWith("http://localhost:"))
|
||||
{
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "Master_Page enforcing SSL, redirecting");
|
||||
}
|
||||
|
||||
Response.Redirect(Request.Url.ToString().Replace("http:", "https:"));
|
||||
}
|
||||
}
|
||||
@@ -97,11 +85,6 @@ namespace Activizr
|
||||
this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px";
|
||||
this.ImageCultureIndicator.Style[HtmlTextWriterStyle.Cursor] = "pointer";
|
||||
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "Master Page exiting Page_Load - Viewing person is " + _viewingPerson.Name );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private Person _viewingPerson;
|
||||
|
||||
@@ -695,10 +695,6 @@ 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);
|
||||
}
|
||||
|
||||
@@ -24,13 +24,6 @@ namespace Activizr.Pages.Security
|
||||
return;
|
||||
}
|
||||
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "In Page_Load of Login.aspx.cs - username is " + this.TextLogin.Text + ", pwd is " +
|
||||
this.TextPassword.Text);
|
||||
}
|
||||
|
||||
|
||||
// Unlock Telerik
|
||||
|
||||
this.Application["Telerik.Web.UI.Key"] = "Activizr";
|
||||
@@ -44,21 +37,9 @@ namespace Activizr.Pages.Security
|
||||
{
|
||||
if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://localhost:") && Request.Url.ToString().StartsWith("http://activizr-") && Request.Url.ToString().StartsWith("http://live.activizr.com"))
|
||||
{
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "Login Page_Load - redirecting to SSL");
|
||||
}
|
||||
|
||||
Response.Redirect(Request.Url.ToString().Replace("http:", "https:"));
|
||||
}
|
||||
}
|
||||
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "Exiting page_load");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void ButtonLogin_Click(object sender, EventArgs e)
|
||||
@@ -66,13 +47,6 @@ namespace Activizr.Pages.Security
|
||||
string loginToken = this.TextLogin.Text;
|
||||
string password = this.TextPassword.Text;
|
||||
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "In button_login_click - login is " + this.TextLogin.Text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(loginToken.Trim()) && !string.IsNullOrEmpty(password.Trim()))
|
||||
{
|
||||
try
|
||||
@@ -86,18 +60,9 @@ namespace Activizr.Pages.Security
|
||||
// TODO: Determine logged-on organization; possibly ask for clarification
|
||||
|
||||
FormsAuthentication.RedirectFromLoginPage(authenticatedPerson.PersonId.ToString() + ",1", true);
|
||||
|
||||
using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true))
|
||||
{
|
||||
temp.WriteLine(DateTime.Now.ToShortTimeString() + "Button_login_click - RedirectFromLoginPage succeeded");
|
||||
}
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user