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
I get a member by memberservice:
var member = memberService.GetById(memberId);
Then i set the member with SetValue
But i am unable to update either email og username..
member.SetValue("_umb_email", model.Email); member.SetValue("_umb_login", model.Email);
or
member.SetValue("Email", model.Email); member.SetValue("Username", model.Email);
Both fail, saying there was no property with that alias.
So how am i supposed to update a member ?
Seems you just have to do it like this:
member.Email = model.Email; member.Username = model.Email;
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Update member Email and username
I get a member by memberservice:
Then i set the member with SetValue
But i am unable to update either email og username..
or
Both fail, saying there was no property with that alias.
So how am i supposed to update a member ?
Seems you just have to do it like this:
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.