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'm trying to create member with this code:
var user = Membership.CreateUser(username: model.Email,
password: Membership.GeneratePassword(10, 0),
var member = uQuery.GetMember((int)Membership.GetUser(model.Email).ProviderUserKey);
var confirmationToken = Guid.NewGuid().ToString().Replace("-", "");
member.Email = model.Email;
member.getProperty("whyMe").Value = model.WhyMe;
member.getProperty("isActivated").Value = false;
member.getProperty("isAnonymous").Value = true;
member.getProperty("confirmCode").Value = confirmationToken;
It work's OK.
But after that I call another mvc action where I try to set few true/false properties:
var user = Membership.GetUser(email);
var member = uQuery.GetMember((int) user.ProviderUserKey);
It doesn't throw any exception and it doesn't save data for this member. I also tried to use member.getProperty("isActivated").Value = false;
but it also didn't work.
Is anybody have thoughts what can be wrong with it?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted