Copied to clipboard

Flag this post as spam?

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


  • NDDT 68 posts 240 karma points c-trib
    Sep 06, 2016 @ 19:18
    NDDT
    0

    Wordpress Users to Umbraco Members

    Im currently moving a wordpress-page to UAAS. We have 5329 users who have written at least one comment.

    Has anyone tryed importing the passwords of users from wordpress into Umbraco. The wordpress database saves only the hash (of course).

    So I tryed something like this:

    newMember.RawPasswordValue = pwHash;
    Services.UserService.Save(newMember);
    

    But the passwords don't match. I can't login. So probaply the hash is calculated diffrently? Is there a workarround?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 07, 2016 @ 07:46
    Sebastiaan Janssen
    100

    You won't be able to do that, the hashing algorithm in Umbraco is different from the one in Wordpress. If there's a .NET version of their Portable PHP password hashing framework available you could try writing a custom membership provider for it but the easiest would be to reset everybody's passwords and send them a link so they can set a new password.

    The other thing you could attempt (again, if there's a .NET version of Portable PHP password hashing framework):

    • Store all their old passwords in a separate table
    • When someone logs in, validate the old password
    • If that password is correct, you now have their clear text password in memory so you can use it to set the password on the Umbraco member (memberService.SetPassword)

    This would of course be the least intrusive for your users but requires some effort.

  • NDDT 68 posts 240 karma points c-trib
    Sep 07, 2016 @ 08:03
    NDDT
    0

    The last idea is genious. Thank you Sebastiaan.

Please Sign in or register to post replies

Write your reply to:

Draft