Skip to content

Commit 0a39b2c

Browse files
style: remove trailing whitespace from Identity page handlers
1 parent 0d6fa6c commit 0a39b2c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

EssentialCSharp.Web/Areas/Identity/Pages/Account/Login.cshtml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.ComponentModel.DataAnnotations;
1+
using System.ComponentModel.DataAnnotations;
22
using EssentialCSharp.Web.Areas.Identity.Data;
33
using EssentialCSharp.Web.Models;
44
using EssentialCSharp.Web.Services;
@@ -70,7 +70,7 @@ public async Task<IActionResult> OnPostAsync(string? returnUrl = null)
7070
string? captchaToken = Request.Form[CaptchaOptions.HttpPostResponseKeyName];
7171

7272
HCaptchaResult? captchaResult = await captchaService.VerifyAsync(captchaToken, HttpContext.Connection.RemoteIpAddress?.ToString());
73-
73+
7474
if (captchaResult?.Success != true)
7575
{
7676
ModelState.AddModelError(string.Empty, "Human verification failed. Please try again.");

EssentialCSharp.Web/Areas/Identity/Pages/Account/Register.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public async Task<IActionResult> OnPostAsync(string? returnUrl = null)
9696
}
9797

9898
HCaptchaResult? response = await captchaService.VerifyAsync(hCaptcha_response, HttpContext.Connection.RemoteIpAddress?.ToString());
99-
99+
100100
if (response is null)
101101
{
102102
ModelState.AddModelError(string.Empty, "Captcha verification is temporarily unavailable. Please try again later.");

0 commit comments

Comments
 (0)