A
A
Arthur2017-02-09 13:24:20
ASP.NET
Arthur, 2017-02-09 13:24:20

What is User Lockout?

Hello ASP.NET Identity connoisseurs. Explain the essence of some things on this technology:
1) What is User Lockout?

manager.UserLockoutEnabledByDefault = true;
            manager.DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(60);
            manager.MaxFailedAccessAttemptsBeforeLockout = 5;

2) What is the user Login logic, with and without "Remember me"? What is ExpireTimeSpan responsible for? And how to configure for both cases?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2017-02-09
@r3st1k25

User Lockout
This is a temporary lockout that is set for the time interval specified in manager.DefaultAccountLockoutTimeSpanafter the number of manager.MaxFailedAccessAttemptsBeforeLockout failed login attempts.
"Remember me"
Without "remember" Authorization cookies are set for the duration of the session (depends on auto-renewal settings).
With "remember" Cookies are set for a long period of time (month, year or more)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question