diff --git a/src/Nager.Authentication.AspNet/Nager.Authentication.AspNet.csproj b/src/Nager.Authentication.AspNet/Nager.Authentication.AspNet.csproj index 14d6c9c..94cf18b 100644 --- a/src/Nager.Authentication.AspNet/Nager.Authentication.AspNet.csproj +++ b/src/Nager.Authentication.AspNet/Nager.Authentication.AspNet.csproj @@ -18,7 +18,7 @@ net8.0;net7.0;net6.0 enable - 1.1.1 + 1.1.2 diff --git a/src/Nager.Authentication/Nager.Authentication.csproj b/src/Nager.Authentication/Nager.Authentication.csproj index 84d150f..99af7a5 100644 --- a/src/Nager.Authentication/Nager.Authentication.csproj +++ b/src/Nager.Authentication/Nager.Authentication.csproj @@ -20,7 +20,7 @@ enable net8.0;net7.0;net6.0 - 1.1.1 + 1.1.2 diff --git a/src/Nager.Authentication/Services/UserAuthenticationService.cs b/src/Nager.Authentication/Services/UserAuthenticationService.cs index c188bcb..c355286 100644 --- a/src/Nager.Authentication/Services/UserAuthenticationService.cs +++ b/src/Nager.Authentication/Services/UserAuthenticationService.cs @@ -170,7 +170,7 @@ public async Task ValidateCredentialsAsync( this.SetInvalidLogin(authenticationRequest.IpAddress); this.SetInvalidLogin(authenticationRequest.EmailAddress); - await this._userRepository.SetLastValidationTimestampAsync(o => o.Id != userEntity.Id, cancellationTokenSource.Token); + await this._userRepository.SetLastValidationTimestampAsync(o => o.Id == userEntity.Id, cancellationTokenSource.Token); return AuthenticationStatus.Invalid; }