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.
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
Replace: //IMember member = umbraco.uQuery.GetMembersByXPath("//*[passwordVerificationToken = '" + Request.QueryString["at"] + "']").FirstOrDefault();
By: IMember member = Services.MemberService.GetMembersByPropertyValue("passwordVerificationToken", Request.QueryString["at"]).FirstOrDefault();
is working on a reply...