@@ -98,7 +98,7 @@ public async Task<IActionResult> Login(LoginInputModel model)
9898 var requires2Fa = context ? . AcrValues . Count ( t => t . Contains ( "mfa" ) ) >= 1 ;
9999
100100 var user = await _userManager . FindByNameAsync ( model . Email ) ;
101- if ( user != null && ! user . TwoFactorEnabled && requires2Fa )
101+ if ( user != null && ! user . TwoFactorEnabled && requires2Fa )
102102 {
103103 return RedirectToAction ( nameof ( ErrorEnable2FA ) ) ;
104104 }
@@ -161,7 +161,7 @@ public async Task<IActionResult> LoginFido2Mfa(string provider, bool rememberMe,
161161
162162 return View ( new MfaModel { /*Provider = provider,*/ ReturnUrl = returnUrl , RememberMe = rememberMe } ) ;
163163 }
164-
164+
165165 [ HttpGet ]
166166 [ AllowAnonymous ]
167167 public IActionResult ErrorEnable2FA ( )
@@ -211,7 +211,7 @@ public async Task<IActionResult> Logout(LogoutViewModel model)
211211 await _signInManager . SignOutAsync ( ) ;
212212 // await HttpContext.Authentication.SignOutAsync(idp, new AuthenticationProperties { RedirectUri = url });
213213 }
214- catch ( NotSupportedException )
214+ catch ( NotSupportedException )
215215 {
216216 }
217217 }
@@ -260,7 +260,8 @@ public async Task<IActionResult> Register(RegisterViewModel model, string return
260260 ViewData [ "ReturnUrl" ] = returnUrl ;
261261 if ( ModelState . IsValid )
262262 {
263- var user = new ApplicationUser {
263+ var user = new ApplicationUser
264+ {
264265 UserName = model . Email ,
265266 Email = model . Email ,
266267 IsAdmin = false
@@ -320,7 +321,7 @@ public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null,
320321 }
321322
322323 var email = info . Principal . FindFirstValue ( ClaimTypes . Email ) ;
323-
324+
324325 if ( ! string . IsNullOrEmpty ( email ) )
325326 {
326327 var user = await _userManager . FindByNameAsync ( email ) ;
@@ -450,9 +451,9 @@ public async Task<IActionResult> ForgotPassword(ForgotPasswordViewModel model)
450451 code = WebEncoders . Base64UrlEncode ( Encoding . UTF8 . GetBytes ( code ) ) ;
451452 var callbackUrl = Url . Action ( "ResetPassword" , "Account" , new { userId = user . Id , code = code } , protocol : HttpContext . Request . Scheme ) ;
452453 await _emailSender . SendEmail (
453- model . Email ,
454+ model . Email ,
454455 "Reset Password" ,
455- $ "Please reset your password by clicking here: { HtmlEncoder . Default . Encode ( callbackUrl ) } ",
456+ $ "Please reset your password by clicking here: { HtmlEncoder . Default . Encode ( callbackUrl ) } ",
456457 "Hi Sir" ) ;
457458
458459 return View ( "ForgotPasswordConfirmation" ) ;
@@ -585,7 +586,7 @@ public async Task<IActionResult> VerifyCode(string provider, bool rememberMe, st
585586 return View ( "Error" ) ;
586587 }
587588
588- if ( string . IsNullOrEmpty ( provider ) )
589+ if ( string . IsNullOrEmpty ( provider ) )
589590 {
590591 provider = "Authenticator" ;
591592 }
0 commit comments