Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roald Haverkamp 2 posts 23 karma points
    Mar 09, 2015 @ 20:02
    Roald Haverkamp
    0

    Removing obsolete authentication functionality

    Hi all,

    For a custom umbraco page i have to eliminate the the following obsolete code:

     protected void Page_Load(object sender, EventArgs e)
            {   
              User u = UmbracoEnsuredPage.CurrentUser;
                if(u == null)       {
                    Response.Redirect("/umbraco/umbraco.aspx");
                }
                if (!IsPostBack)
                {
                    Bind();
                }
            }

    But i can't figure out whats the correct way to do this. We are using umbraco 6.2.4.

    Any help with this would be greatly appreciated.

    Roald

Please Sign in or register to post replies

Write your reply to:

Draft