Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 733 posts 2844 karma points c-trib
    Nov 06, 2014 @ 09:44
    Sören Deger
    0

    Validate member with memberservice

    Hi all,

    how can I validate a member with memberservice when password is hashed?

    IMember has only the property rawPasswordValue.

    If I use the old way like this 

    Membership.ValidateUser(username,password) 

    I get the error "Provider can not retrieve a hashed password". 

    How I can validate the hased password of a member against a clear password?

     

    Best regards

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    Nov 06, 2014 @ 10:20
    Sören Deger
    0

    Update:

    I get the same error message if I use this:

    MembershipHelper Members = new MembershipHelper(UmbracoContext.Current);

    if (Members.Login(username, password))
    {
    // do anything
    }  


    Umbraco version 7.1.8


    Anyone an idea?
     

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    Nov 06, 2014 @ 11:16
    Sören Deger
    100

    Now it works with the last code above, but I dont't know why.I have only recycled the application pool and restart the project. Maybe this solved the issue.
     

  • Svetlin 1 post 71 karma points
    Apr 04, 2015 @ 18:55
    Svetlin
    0

    You can use this:

    Member member = Member.GetMemberFromLoginNameAndPassword(model.UserName, model.Password);

  • 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.

Please Sign in or register to post replies