diff --git a/aspnetcore/security/authentication/identity/sample/src/ASPNETCore-IdentityDemoComplete/IdentityDemo/Controllers/AccountController.cs b/aspnetcore/security/authentication/identity/sample/src/ASPNETCore-IdentityDemoComplete/IdentityDemo/Controllers/AccountController.cs index af417d8c257f..852f350378a1 100644 --- a/aspnetcore/security/authentication/identity/sample/src/ASPNETCore-IdentityDemoComplete/IdentityDemo/Controllers/AccountController.cs +++ b/aspnetcore/security/authentication/identity/sample/src/ASPNETCore-IdentityDemoComplete/IdentityDemo/Controllers/AccountController.cs @@ -59,8 +59,9 @@ public async Task Login(LoginViewModel model, string returnUrl = ViewData["ReturnUrl"] = returnUrl; if (ModelState.IsValid) { - // This doesn't count login failures towards account lockout - // To enable password failures to trigger account lockout, set lockoutOnFailure: true + // This does not count login failures towards account lockout + // To enable password failures to trigger account lockout, + // set lockoutOnFailure: true var result = await _signInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, lockoutOnFailure: false); if (result.Succeeded) { @@ -83,7 +84,7 @@ public async Task Login(LoginViewModel model, string returnUrl = } } - // If we got this far, something failed, redisplay form + // If execution got this far, something failed, redisplay the form. return View(model); } @@ -91,7 +92,7 @@ public async Task Login(LoginViewModel model, string returnUrl = [AllowAnonymous] public async Task LoginWith2fa(bool rememberMe, string returnUrl = null) { - // Ensure the user has gone through the username & password screen first + // Ensure that the user has gone through the username & password screen first var user = await _signInManager.GetTwoFactorAuthenticationUserAsync(); if (user == null) @@ -237,7 +238,7 @@ public async Task Register(RegisterViewModel model, string return AddErrors(result); } - // If we got this far, something failed, redisplay form + // If execution got this far, something failed, redisplay the form. return View(model); } @@ -376,7 +377,7 @@ public async Task ForgotPassword(ForgotPasswordViewModel model) return RedirectToAction(nameof(ForgotPasswordConfirmation)); } - // If we got this far, something failed, redisplay form + // If execution got this far, something failed, redisplay the form. return View(model); }