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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.