Copied to clipboard

Flag this post as spam?

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


  • Janis Z 3 posts 75 karma points
    Jul 12, 2018 @ 09:31
    Janis Z
    0

    ValidateUser doesn't get called

    Hi,

    I'm new to using Umbraco. I'm using Umbraco 7.11.1 (latest as of now). I'm trying to extend login functionality for users, more specifically I want to perform additional actions during backoffice login process.

    So far I created class to extend UsersMembershipProvider:

        public class ExternalUsersMembershipProvider : UsersMembershipProvider
    {
        public override bool ValidateUser(string username, string password)
        {
            // custom logic
    
            return base.ValidateUser(username, password);
        }
    }
    

    web.config:

        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <add name="UsersMembershipProvider" type="XXX.Auth.ExternalUsersMembershipProvider" />
        <add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="10" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" allowManuallyChangingPassword="false" />
      </providers>
    </membership>
    

    When trying to login, ValidateUser method doesn't seem to get executed at all.

    Any ideas? Thanks.

  • Alex Skrypnyk 4818 posts 17333 karma points MVP 2x admin c-trib
    1 week ago
    Alex Skrypnyk
    0

    Hi Janis

    Did you fix this issue? Can you share with us?

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft