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
Hi.
I am trying to change member password using my custom CreateRandomPassword function.
My web.config file:
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
My code:
MembershipUser user = Membership.GetUser(cuw.UserName);String oldPass = user.ResetPassword();String newPass = CreateRandomPassword(10);user.ChangePassword(oldPass, newPass);
With my code, the password asigned to member gets oldPass value instead of newPass.
What am i doing wrong?
Thanks for your help!Ivan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Can't change member hashed password using MembershipProvider
Hi.
I am trying to change member password using my custom CreateRandomPassword function.
My web.config file:
My code:
With my code, the password asigned to member gets oldPass value instead of newPass.
What am i doing wrong?
Thanks for your help!
Ivan
is working on a reply...