Enable password reset

Enable password reset

Postby rafael.b.biz » Mon 02 Sep 2013 13:30

Hi,

Does the Devart's PostgreSQL membership provider supports password reset? I am getting "Specified method is not supported." error when I try to call these methods.
Code: Select all
UserProfile userprofile = db.UserProfiles.Single(u => u.Id == viewModel.UserId);
MembershipUser membershipUser = Membership.GetUser(userprofile.UserName);
membershipUser.ChangePassword(membershipUser.ResetPassword(), viewModel.NewPassword);

Am I missing some configuration? This is my web.config file:
Code: Select all

<membership defaultProvider="PgSqlExtendedMembershipProvider" userIsOnlineTimeWindow="15">
  <providers>
    <remove name="PgSqlExtendedMembershipProvider"/>
    <add name="PgSqlExtendedMembershipProvider"
      type="Devart.Data.PostgreSql.Web.Providers.PgSqlExtendedMembershipProvider,
            Devart.Data.PostgreSql.Web, Version=6.7.301.4, Culture=neutral,
            PublicKeyToken=09af7300eec23701"
      connectionStringName="DefaultConnection"
      enablePasswordRetrieval="false"
      enablePasswordReset="true"
      requiresQuestionAndAnswer="false"
      requiresUniqueEmail="false"
      passwordFormat="Hashed"/>
  </providers>
</membership>
<roleManager enabled="true" defaultProvider="PgSqlExtendedRoleProvider"/>

rafael.b.biz
 
Posts: 2
Joined: Fri 30 Aug 2013 19:32

Re: Enable password reset

Postby Pinturiccio » Wed 04 Sep 2013 15:22

Most of the inherited MembershipProvider methods and properties are not implemented in the ExtendedMembershipProvider. For more information, please refer to
http://msdn.microsoft.com/en-us/library/webmatrix.webdata.extendedmembershipprovider%28v=vs.111%29.aspx
http://sharifhkhan.com/programming/features-removed-in-simplemembershipprovider/

PgSqlMembershipProvider supports the ResetPassword method, аnd PgSqlExtendedMembershipProvider does not.
Pinturiccio
Devart Team
 
Posts: 1979
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for PostgreSQL