I am coding up a password reset user control (see code below) but when the code hits cMember.Save I get an error (shown below). This also happens in the back office when I try to save a user, can anyone help please?
Member cMember = Member.GetMemberFromEmail(tbEmail.Text);
// Found the user var password = Membership.GeneratePassword(10, 1); password = Regex.Replace(password, @"[^a-zA-Z0-9]", m => "9");
// Change the password cMember.ChangePassword(password);
On Member.Save - An item with the same key has already been added.
sd
I am coding up a password reset user control (see code below) but when the code hits cMember.Save I get an error (shown below). This also happens in the back office when I try to save a user, can anyone help please?
Member cMember = Member.GetMemberFromEmail(tbEmail.Text);
// Found the user
var password = Membership.GeneratePassword(10, 1);
password = Regex.Replace(password, @"[^a-zA-Z0-9]", m => "9");
// Change the password
cMember.ChangePassword(password);
// Save the password
cMember.Save();
is working on a reply...