Paolo ponzano - 173 - Yesterday 3:09 AM

Hi,
I saw that OrmLiteAuthRepository creates the table UserAuth. In this table I find some useful columns like InvalidLoginAttempts, LastLoginAttempt, LockedDate. They are always empty. I’m using the standard CredentialsAuthProviders (I’m using OrmLite both for auth repository and session storage) configured in this way:

            plugins.Add(
                new AuthFeature(
                    () => new AuthUserSession(),
                    new IAuthProvider[] 
                    { 
                        new CredentialsAuthProvider(),
                    },
                    htmlRedirect: htmlRedirect
                )
            );

            plugins.Add(new RegistrationFeature());

            var cacheClient = new OrmLiteCacheClient() { DbFactory = dbFactory }; // dbFactory is initialized before.
            cacheClient.InitSchema();
            container.Register<ICacheClient>(cacheClient);

            var authRepository = new OrmLiteAuthRepository(dbFactory);
            authRepository.InitSchema();
            container.Register<IUserAuthRepository>(authRepository);

What can I do in order to get working this columns?

Thank you 

You can set the OrmLiteAuthRepository.MaxLoginAttempts to enable the max login attempt feature which will lock the user account after the specified incorrect login attempts.