Hello I have a problem when trying to let people signup as members i tried adding the member with the old way(its out commented) but when i get to the line CreateUser then it throws an exception saying Duplicate User name! A member with the user name test already exists. And no matter what name i use it keeps saying that. Can anyone put some light on this issue
var mt = MemberType.GetByAlias("ForumUser");
var addToMemberGroup = MemberGroup.GetByName("ForumUser");
//create a member
//var m = Member.MakeNew(Server.HtmlEncode(username), mt, new umbraco.BusinessLogic.User(0));
MembershipUser user = System.Web.Security.Membership.CreateUser(username, password,email);
Hi, I recognize this, it might be because of an existing empty string username for an existing user (error msg is wrong), it might be worth having a look in the db. umbracoMembers table
MembershipUser
Hello I have a problem when trying to let people signup as members i tried adding the member with the old way(its out commented) but when i get to the line CreateUser then it throws an exception saying Duplicate User name! A member with the user name test already exists. And no matter what name i use it keeps saying that. Can anyone put some light on this issue
var mt = MemberType.GetByAlias("ForumUser");
var addToMemberGroup = MemberGroup.GetByName("ForumUser");
//create a member
//var m = Member.MakeNew(Server.HtmlEncode(username), mt, new umbraco.BusinessLogic.User(0));
MembershipUser user = System.Web.Security.Membership.CreateUser(username, password,email);
are you using the asp:CreateUserWizard?
Hey Yannick
No im using my own controls
debug time I guess, hard to help your more from just these lines of code, they look correct.
Hi, I recognize this, it might be because of an existing empty string username for an existing user (error msg is wrong), it might be worth having a look in the db. umbracoMembers table
is working on a reply...