Skip to content

Commit

Permalink
Fixes break in OpenIdProviderWebForms home page.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jun 9, 2013
1 parent 8b4ee0d commit 1928d80
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions samples/OpenIdProviderWebForms/Default.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
/// </summary>
public partial class _default : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
this.RegisterAsyncTask(
new PageAsyncTask(
async ct => {
if (Request.QueryString["rp"] != null) {
if (Request.QueryString["rp"] != null) {
this.RegisterAsyncTask(
new PageAsyncTask(
async ct => {
if (Page.User.Identity.IsAuthenticated) {
await this.SendAssertionAsync(Request.QueryString["rp"]);
} else {
FormsAuthentication.RedirectToLoginPage();
}
} else {
TextBox relyingPartySite = (TextBox)this.loginView.FindControl("relyingPartySite");
if (relyingPartySite != null) {
relyingPartySite.Focus();
}
}
}));
}));
} else {
TextBox relyingPartySite = (TextBox)this.loginView.FindControl("relyingPartySite");
if (relyingPartySite != null) {
relyingPartySite.Focus();
}
}
}

protected async void sendAssertionButton_Click(object sender, EventArgs e) {
Expand Down

0 comments on commit 1928d80

Please sign in to comment.