fix legacy member wrapping new api and mixing email/login name

This commit is contained in:
Shannon
2014-02-17 12:24:11 +11:00
parent 697f93c3ce
commit 2849ecadb7

View File

@@ -225,7 +225,7 @@ namespace umbraco.cms.businesslogic.member
throw new Exception(string.Format("Duplicate User name! A member with the user name {0} already exists", loginName));
var model = ApplicationContext.Current.Services.MemberService.CreateMemberWithIdentity(
Email.ToLower(), loginName, "", mbt.MemberTypeItem);
loginName, Email.ToLower(), "", mbt.MemberTypeItem);
model.Name = Name;
//The content object will only have the 'WasCancelled' flag set to 'True' if the 'Creating' event has been cancelled, so we return null.