Copied to clipboard

Flag this post as spam?

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


  • Mecânica e no roubo 2 posts 72 karma points
    Mar 19, 2021 @ 17:03
    Mecânica e no roubo
    0

    After upgrading from Umbraco 6 to 7 my ValidateUser doesn't work

    Hello guys, recently I have updated my Umbraco versions which were from 4.7.1 all the way to version 7, obviously I followed the best way I could to upgrade from version to version, it all went good but when I updated from 6 to 7 whenever I use Membership.ValidateUser(user, password) to then set cookie for the User to navigate to the website, well it doesn't work.

    When I use MembershipUser member = Membership.GetUser(userName); or var member = Membership.GetAllUsers(); it retrieves me the information from the Database but it seems that when it needs to validate the form password input by the user and the password from the Database it fails.

    I even tried to put useLegacyEncoding="true" but it didn't worked.

    I have this in my web.config

     <authentication mode="Forms">
          <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" slidingExpiration="true" timeout="40" />
        </authentication>
        <authorization>
          <allow users="?" />
        </authorization>
        <!-- Membership Provider -->
        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" umbracoLockPropertyTypeAlias="lock" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Utilizador" umbracoLastLoginPropertyTypeAlias="commonLastLogin" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>
    

    I even reset the password and it didn't work out, can you guys help me out with this?

Please Sign in or register to post replies

Write your reply to:

Draft