Copied to clipboard

Flag this post as spam?

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


  • ds 191 posts 223 karma points
    Oct 15, 2010 @ 14:20
    ds
    0

    Membership does not work after installing 4.5.2

    Hi all,

    I have been using Umbraco 4.0.4.2 for development of our new website but after creating membership section on 4.0.4.2, I decided to install new version of 4.5.2.

    Following is cope snippet created for 4.0.4.2 but on 4.5.2 indicates that Member.GetMemberFromEmail(Email.Text) is obsolete.

                if (Member.GetMemberFromEmail(Email.Text) == null)
    {
    MemberType demoMemberType = MemberType.GetByAlias("demo");
    Member newMember = Member.MakeNew(UserName.Text, demoMemberType, new umbraco.BusinessLogic.User(0));

    newMember.Email = Email.Text;
    newMember.Password = Password.Text;
    newMember.LoginName = UserName.Text;

    newMember.Save();
    }

    Any help would be appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft