Skip to content

Commit

Permalink
Moved adding of Password Recovery Control to OnInit, as it wasn't wor…
Browse files Browse the repository at this point in the history
…king properly

from CreateChildControls if RequiresQuestionAnswer was true on SharePoint 2013/.Net 4.0
  • Loading branch information
ccoulson committed Jan 20, 2013
1 parent 6c8de89 commit 0556cba
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,16 @@ private void SendEmail()
});
}

protected override void CreateChildControls()
//protected override void CreateChildControls()
//{
// AddPasswordRecoveryControl();
// base.CreateChildControls();
//}

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
AddPasswordRecoveryControl();
base.CreateChildControls();
}

protected override void RenderContents(HtmlTextWriter writer)
Expand Down

0 comments on commit 0556cba

Please sign in to comment.