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
Is there an example of razor member signup form and edit member profile?
?
I would like to know i you found a solution?
This is my solution:
if (Member.GetMemberFromEmail(email) == null)
{
var memberType = new MemberType(1109);
var persona = string.Concat(nome," ",cognome);
try{
Member newMember = Member.MakeNew(persona, memberType, new umbraco.BusinessLogic.User(0));
newMember.Email = email;
newMember.LoginName = username;
newMember.Password = password;
newMember.getProperty("privacyAccettata").Value = 1;
if (privacycassiopea=="Si"){
newMember.getProperty("privacyCassiopeaImageNewsletter").Value = 1;
}
else{
newMember.getProperty("privacyCassiopeaImageNewsletter").Value = 0;
if (privacyterze=="Si"){
newMember.getProperty("privacyTerzeParti").Value = 1;
newMember.getProperty("privacyTerzeParti").Value = 0;
newMember.Save();
return "true";
catch (MembershipCreateUserException e)
//msg = GetErrorMessage(e.StatusCode);
msg= e.Message;
return @msg;
catch (HttpException e)
msg = e.Message;
else
return "false";
Hi you can find an implimentation @ http://www.charlesafford.com/umbraco-membership-provider.aspx
Hope this helps :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Razor sign up form and member profile...
Is there an example of razor member signup form and edit member profile?
?
I would like to know i you found a solution?
This is my solution:
if (Member.GetMemberFromEmail(email) == null)
{
var memberType = new MemberType(1109);
var persona = string.Concat(nome," ",cognome);
try{
Member newMember = Member.MakeNew(persona, memberType, new umbraco.BusinessLogic.User(0));
newMember.Email = email;
newMember.LoginName = username;
newMember.Password = password;
newMember.getProperty("privacyAccettata").Value = 1;
if (privacycassiopea=="Si"){
newMember.getProperty("privacyCassiopeaImageNewsletter").Value = 1;
}
else{
newMember.getProperty("privacyCassiopeaImageNewsletter").Value = 0;
}
if (privacyterze=="Si"){
newMember.getProperty("privacyTerzeParti").Value = 1;
}
else{
newMember.getProperty("privacyTerzeParti").Value = 0;
}
newMember.Save();
return "true";
}
catch (MembershipCreateUserException e)
{
//msg = GetErrorMessage(e.StatusCode);
msg= e.Message;
return @msg;
}
catch (HttpException e)
{
msg = e.Message;
return @msg;
}
}
else
{
return "false";
}
Hi you can find an implimentation @ http://www.charlesafford.com/umbraco-membership-provider.aspx
Hope this helps :)
is working on a reply...