Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When I try and use the following:
ApplicationContext.Current.Services.MemberService.GetByUsername("username").
I'm receiving the following error?
Umbraco.Core.Services.IMemberService' does not contain a definition for 'GetByUsername'
Does anyone have any ideas what could be causing this.
Thanks J
Hi Josh
What version of Umbraco are you using?
Just tested in 7.7.7 and 7.8.1 - it works for me
/Alex
7.7.something..
I know it worked for me in the same controller elsewhere so I’m a bit stumped as to what could possibly be different....
I’ve got a registration function that this works perfectly, then in the function it just falls over!
I’m at a bit of a lose really, so was wondering if any one could figure out where I’m being stupid..
Another thought; should I be using the membership helper for this? I’m want to check if a member already exists before I create a new member.
https://our.umbraco.org/apidocs/csharp/api/Umbraco.Web.Security.MembershipHelper.html#methods
Solved using the membership helper.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
MemberService.GetByUsername does not appear in IMemberService
When I try and use the following:
ApplicationContext.Current.Services.MemberService.GetByUsername("username").
I'm receiving the following error?
Umbraco.Core.Services.IMemberService' does not contain a definition for 'GetByUsername'
Does anyone have any ideas what could be causing this.
Thanks J
Hi Josh
What version of Umbraco are you using?
Just tested in 7.7.7 and 7.8.1 - it works for me
/Alex
7.7.something..
I know it worked for me in the same controller elsewhere so I’m a bit stumped as to what could possibly be different....
I’ve got a registration function that this works perfectly, then in the function it just falls over!
I’m at a bit of a lose really, so was wondering if any one could figure out where I’m being stupid..
Another thought; should I be using the membership helper for this? I’m want to check if a member already exists before I create a new member.
https://our.umbraco.org/apidocs/csharp/api/Umbraco.Web.Security.MembershipHelper.html#methods
Solved using the membership helper.
is working on a reply...