GetPassword()
hi
i'm having a right mare trying to use GetPassword(), it always returns with the "Password retrieval is not Enabled" error.
I guess Im doing something idiotic but cant see it for the life of me.
In the web.config I have my defaultprovider set with
<
membership
defaultProvider
=
"Default"
>
<
providers
>
<
clear
/>
<
add
name
=
"Default"
enablePasswordRetrieval
=
"true"
enablePasswordReset
=
"false"
requiresQuestionAndAnswer
=
"false"
passwordFormat
=
"Encrypted"
type
=
"Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"
/>
</
providers
>
</
membership
>
UserManager usrMan = new UserManager();
MembershipUser user = Membership.GetUser(usrMan.GetUserByEmail(txtEmailAddress.Text).UserName);
string password = user.GetPassword();
Hello Tim,
Can you please take a look at this forum thread, I believe you might find it useful in achieving the desired functionality - it contains a brief walkthrough on the password retrieval mechanisms in Sitefinity, and several code samples and screenshots of important settings in the backend configurations, in order to be able to retrieve the users's passwords.
Greetings,
Boyan Barnev
the Telerik team