Copied to clipboard

Flag this post as spam?

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


  • Kevin Restiaens 9 posts 59 karma points
    Dec 04, 2014 @ 14:08
    Kevin Restiaens
    0

    new Member API and GetMembersByXPath

    Hi,

     

    I've been upgrading Umbraco from version 6.1.6 to 6.2.4 and I am now refactering code to deal with the obsolete Member-code (umbraco.cms.businesslogic.member). Until now I was not able to find how to find Member with XPath as the umbraco.uQuery.GetMembersByXPath returns an Member from the obsolete namespace.

    I want to find the members with XPath of the type Umbraco.Core.Models.IMember.

    Any suggestions?

    Kind Regards,

    Kevin

  • Kevin Restiaens 9 posts 59 karma points
    Dec 05, 2014 @ 12:00
    Kevin Restiaens
    100

    Replace:   //IMember member = umbraco.uQuery.GetMembersByXPath("//*[passwordVerificationToken = '" + Request.QueryString["at"] + "']").FirstOrDefault();

    By:           IMember member = Services.MemberService.GetMembersByPropertyValue("passwordVerificationToken", Request.QueryString["at"]).FirstOrDefault();

Please Sign in or register to post replies

Write your reply to:

Draft