diff --git a/Security/Services/AuthService.cs b/Security/Services/AuthService.cs index e78ce75..7909cc1 100644 --- a/Security/Services/AuthService.cs +++ b/Security/Services/AuthService.cs @@ -175,7 +175,7 @@ public class AuthService(ICacheService cache, IAccessToken accessTokenService, I public async Task LoginAsync(CookieOptionsParameters cookieOptions, User user, HttpContext context, string password, string username, CancellationToken cancellation = default) { var requestContext = new RequestContextInfo(context, cookieOptions); - + username = username.Trim(); await VerifyUserOrThrowError(requestContext, user, password, username, cancellation); if (user.TwoFactorAuthenticator == TwoFactorAuthenticator.None)