Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Elad Lachmi 112 posts 144 karma points
    Apr 12, 2011 @ 07:36
    Elad Lachmi
    0

    umbraco membership provider password recovery

    Hi,

    I'm using Umbraco Membership provider and have more of a best practices type question.

    I have the password type set to Hashed. I want to be able to send the user a new password when he forgets his password, but also want to allow the user to change his password after he logs on.

    Can this be done using the regular asp.net membership controls?

    If so, what setting do I need to use?

    Thank you!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 12, 2011 @ 08:23
    Jan Skovgaard
    0

    Hi Elad

    To send the user a new password you can find more information about this here: http://msdn.microsoft.com/en-us/library/ms178329.aspx

    To make the user able to change the password you can find more information here: http://msdn.microsoft.com/en-us/library/ms178329.aspx#the_changepassword_control

    You should be able to just use these controls out of the box.

    Hope this helps.

    /Jan

  • Elad Lachmi 112 posts 144 karma points
    Apr 12, 2011 @ 13:50
    Elad Lachmi
    0

    Thank you!

    Thats the info I was looking for.

    I ended up just needing to play around with the provider settings in the web.config.

  • usman 24 posts 43 karma points
    May 25, 2011 @ 15:11
    usman
    0

    Hi,

         I want to decrypt the hashed umbraco memership password. Any ideas??

    Thanks,

    Usman

  • Mike Pitcher 6 posts 26 karma points
    Jul 01, 2011 @ 11:31
    Mike Pitcher
    0

    You can't "decrypt" a hashed password. If you want to be able recover a password you either store it encrypted or in plain text (the latter only if you have no concern for security).

    All the best

     

    Mike

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 10, 2012 @ 08:36
    Fuji Kusaka
    0

    Hi Jan,

    Am using the same control from msdn but getting this error message when submitting the email add.

    Membership provider does not support password retrieval or reset.

     

    Any thought why?

     

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Feb 10, 2012 @ 09:44
    Michael Latouche
    0

    Hi Fuji,

    Did you set your provider settings to enable password retrieval in your web.config file?

    Cheers,

    Michael

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 10, 2012 @ 10:12
    Fuji Kusaka
    0

    Hi Michael.

    After changing my web.config to this

    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />

    I get Configutation Error.

    Provider can not retrieve hashed password

    Am using version 4.7.1, it works just fine under 4.70.

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Feb 10, 2012 @ 10:30
    Michael Latouche
    0

    Hi Fuji,

    Like Mike said a few months ago, you cannot retrieve a hashed password. I am surprised it works in 4.7.0. You either have to use encrypted password or clear text (security!).

    Also, do not forget to put your defaultMemberTypeAlias property to the actual type alias in your Umbraco instance.

    Cheers,

    Michael.

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 10, 2012 @ 10:54
    Fuji Kusaka
    0
    I did set my defaultProvidrer as well but not working
    <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 13, 2012 @ 10:13
    Fuji Kusaka
    0

    Now that i have the following setting

    <addname="UmbracoMembershipProvider"type="umbraco.providers.members.UmbracoMembershipProvider"enablePasswordRetrieval="true"enablePasswordReset="false"requiresQuestionAndAnswer="false"defaultMemberTypeAlias="Another Type"passwordFormat="Clear"/>


    I instead get the password results in mailbox to "Hashed" and "Reset" to a new generated one.

    Any help on this please?

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Feb 13, 2012 @ 10:56
    Michael Latouche
    0

    Hi Fuji,

    If you are testing with a previous account it is normal: your previous settings were set to "hashed", so the password was hashed in the DB. Now that you have set it to clear, when requesting the password, you just get what's in the DB, which is the hashed version. There is no "un-hashing" possible.

    What you can do is set the clear password manually in the DB, or try with a complete new account. Then it should work.

    Cheers,

    Michael.

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 13, 2012 @ 11:05
    Fuji Kusaka
    0

    Hi Michael,

    Your right, i just realised that the hashed password as the previous one i saved previously. After updating my password and making a recovery i received the clear one.

    Thanks for the response thought

    //fuji

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Feb 13, 2012 @ 11:12
    Michael Latouche
    0

    No problem :-)

    Great news it works!

    Cheers,

    Michael.

Please Sign in or register to post replies

Write your reply to:

Draft