Can you check what is your setting in UmbracoSettings.config file => security section => usernameIsEmail field?
<security>
<!-- by default this is true and if not specified in config will be true. set to false to always show a separate username field in the back office user editor -->
<usernameIsEmail>false</usernameIsEmail>
</security>
Cannot change member Username by code
I tried such code, email and name changed, but Username don`t, What I do wrong? maybe some configuration settings
var member = ApplicationContext.Services.MemberService.GetByUsername(Request["profileModel.UserName"]); member.Username = Request["profileModel.Email"]; member.Email = Request["profileModel.Email"]; member.Name = Request["profileModel.Name"]; ApplicationContext.Services.MemberService.Save(member, false);
Hello Anton
Can you check what is your setting in UmbracoSettings.config file => security section => usernameIsEmail field?
Thanks,
Alex
Hello Anton
Let me know how things are going? Did you solve the issue?
Thanks, Alex
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.