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
Hi,
i am trying to fetch a member using email id , then its properties using GeProperties .
Member.GetMemberFromEmal(email)
This is obsolete now .can any body help which api does the same?
Regards, Harshit
Hi Harshit,
Try to use MemberService, read more here - https://our.umbraco.org/documentation/reference/management/services/memberservice
Thanks,
Alex
Thanks Alex :)
any idea on member properties which can be used for updating/changing password?
You are welcome,
You can set new password like that:
ApplicationContext.Services.MemberService.SavePassword(member, Guid.NewGuid().ToString("d").Substring(1, 8));
Thanks, Alex
I am using SurfaceController, so just wondering will ApplicationContext.Services work?
Yes,
var member = Services.MemberService.GetByEmail(email); Services.MemberService.SavePassword(member, new Guid().ToString());
Thanks a lot Alex :) its really helpful.
cheers
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to get a member property using api in surface controller
Hi,
i am trying to fetch a member using email id , then its properties using GeProperties .
This is obsolete now .can any body help which api does the same?
Regards, Harshit
Hi Harshit,
Try to use MemberService, read more here - https://our.umbraco.org/documentation/reference/management/services/memberservice
Thanks,
Alex
Thanks Alex :)
any idea on member properties which can be used for updating/changing password?
You are welcome,
You can set new password like that:
Thanks, Alex
I am using SurfaceController, so just wondering will ApplicationContext.Services work?
Regards, Harshit
Yes,
Thanks a lot Alex :) its really helpful.
cheers
is working on a reply...