Copied to clipboard

Flag this post as spam?

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


  • deep C 20 posts 210 karma points
    1 week ago
    deep C
    0

    Members unable to login after upgrading to Umbraco 10 from 8

    After I migrated the SQL database from Umbraco 8 to 10, members can't login.

    How can I change the way Umbraco 10 hashes passwords so that it uses the same method as Umbraco 8?

    The web.config from Umbraco 8 is:

    <add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco.Web" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" allowManuallyChangingPassword="true" maxInvalidPasswordAttempts="10" />
    

    Thanks for any help.

  • deep C 20 posts 210 karma points
    2 days ago
    deep C
    100

    Umbraco 10 can use several different hashing algorithms in the same application while Umbraco 8 uses HMACSHA256 by default.

    You can change the hashing algorithm for a specific member by setting the passwordConfig field in their cmsMember table record.

    For HMACSHA256, for example, you would set the field to {"hashAlgorithm":"HMACSHA256"}. (curly braces need to be included)

    The valid values are:

    "PBKDF2.ASPNETCORE.V3" "PBKDF2.ASPNETCORE.V2" "HMACSHA256" "HMACSHA1"

Please Sign in or register to post replies

Write your reply to:

Draft