{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Identity/issues/568","labels_url":"https://api.github.com/repos/aspnet/Identity/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Identity/issues/568/comments","events_url":"https://api.github.com/repos/aspnet/Identity/issues/568/events","html_url":"https://github.com/aspnet/Identity/issues/568","id":107136278,"number":568,"title":"Clarification from the AccountControllers view - lockout is set in 2 different places","user":{"login":"winecraft","id":13067681,"avatar_url":"https://avatars.githubusercontent.com/u/13067681?v=3","gravatar_id":"","url":"https://api.github.com/users/winecraft","html_url":"https://github.com/winecraft","followers_url":"https://api.github.com/users/winecraft/followers","following_url":"https://api.github.com/users/winecraft/following{/other_user}","gists_url":"https://api.github.com/users/winecraft/gists{/gist_id}","starred_url":"https://api.github.com/users/winecraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winecraft/subscriptions","organizations_url":"https://api.github.com/users/winecraft/orgs","repos_url":"https://api.github.com/users/winecraft/repos","events_url":"https://api.github.com/users/winecraft/events{/privacy}","received_events_url":"https://api.github.com/users/winecraft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T05:26:26Z","updated_at":"2015-09-21T22:45:43Z","closed_at":null,"body":"Hello, I am using the Microsoft guidance from your blog and your sample code. Is the AccountController there still valid? \r\n\r\nFor e.g. there are references to the `SigninManager` and `Helper` helping to configure lockout... can you please help on how to proceed forward?\r\n\r\n1. Inside this class... you've \r\n\r\n           public class ApplicationUserManager : UserManager<ApplicationUser, string>\r\n           ...\r\n           // Configure user lockout defaults\r\n            manager.UserLockoutEnabledByDefault = true;\r\n            manager.DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(5);\r\n            manager.MaxFailedAccessAttemptsBeforeLockout = 5; \\\\ why is it set here too?\r\n\r\n2.  but in another section it set to `false` below...\r\n\r\n        public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)\r\n        {            \r\n            // This doen't count login failures towards lockout only two factor authentication\r\n            // To enable password failures to trigger lockout, change to shouldLockout: true\r\n            var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, \r\n           model.RememberMe, shouldLockout: false); \\\\its set to false here?\r\n            switch (result)\r\n            {\r\n                case SignInStatus.Success:\r\n                    return RedirectToLocal(returnUrl);\r\n                case SignInStatus.LockedOut:\r\n                    return View(\"Lockout\");\r\n\r\n            }\r\n        }\r\n\r\n\r\nI am a little lost as I try to implement the identity and security, can you please shed some light on and provide guidance how to what the old account controller was doing, and what to discard from that sample... \r\n\r\nAs we upgrade to this version, do you now have  _new_ helper classes that handle the old AccountHelpers functionality?"},"comment":{"url":"https://api.github.com/repos/aspnet/Identity/issues/comments/142130203","html_url":"https://github.com/aspnet/Identity/issues/568#issuecomment-142130203","issue_url":"https://api.github.com/repos/aspnet/Identity/issues/568","id":142130203,"user":{"login":"rustd","id":1132652,"avatar_url":"https://avatars.githubusercontent.com/u/1132652?v=3","gravatar_id":"","url":"https://api.github.com/users/rustd","html_url":"https://github.com/rustd","followers_url":"https://api.github.com/users/rustd/followers","following_url":"https://api.github.com/users/rustd/following{/other_user}","gists_url":"https://api.github.com/users/rustd/gists{/gist_id}","starred_url":"https://api.github.com/users/rustd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustd/subscriptions","organizations_url":"https://api.github.com/users/rustd/orgs","repos_url":"https://api.github.com/users/rustd/repos","events_url":"https://api.github.com/users/rustd/events{/privacy}","received_events_url":"https://api.github.com/users/rustd/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T22:45:42Z","updated_at":"2015-09-21T22:45:42Z","body":"This issue is for ASP.NET Identity v2. This repo is for ASP.NET Identity v3. Can you please ask this question on aspnetidentity.codeplex.com\r\n\r\nIs your question around migrating to v3?\r\n\r\n"}}