@@ -997,11 +997,11 @@ public virtual async Task<IdentityResult> UpdateSecurityStampAsync(TUser user)
997997 ArgumentNullThrowHelper . ThrowIfNull ( user ) ;
998998
999999 await UpdateSecurityStampInternal ( user ) . ConfigureAwait ( false ) ;
1000- return await UpdateUserAndRecordMetricAsync ( user , UserUpdateType . SecurityStamp , startTimeStamp ) . ConfigureAwait ( false ) ;
1000+ return await UpdateUserAndRecordMetricAsync ( user , UserUpdateType . UpdateSecurityStamp , startTimeStamp ) . ConfigureAwait ( false ) ;
10011001 }
10021002 catch ( Exception ex )
10031003 {
1004- _metrics ? . UpdateUser ( typeof ( TUser ) . FullName ! , result : null , UserUpdateType . SecurityStamp , startTimeStamp , ex ) ;
1004+ _metrics ? . UpdateUser ( typeof ( TUser ) . FullName ! , result : null , UserUpdateType . UpdateSecurityStamp , startTimeStamp , ex ) ;
10051005 throw ;
10061006 }
10071007 }
@@ -2217,17 +2217,17 @@ public virtual async Task<IdentityResult> AccessFailedAsync(TUser user)
22172217 var count = await store . IncrementAccessFailedCountAsync ( user , CancellationToken ) . ConfigureAwait ( false ) ;
22182218 if ( count < Options . Lockout . MaxFailedAccessAttempts )
22192219 {
2220- return await UpdateUserAndRecordMetricAsync ( user , UserUpdateType . AccessFailed , startTimestamp ) . ConfigureAwait ( false ) ;
2220+ return await UpdateUserAndRecordMetricAsync ( user , UserUpdateType . IncrementAccessFailed , startTimestamp ) . ConfigureAwait ( false ) ;
22212221 }
22222222 Logger . LogDebug ( LoggerEventIds . UserLockedOut , "User is locked out." ) ;
22232223 await store . SetLockoutEndDateAsync ( user , DateTimeOffset . UtcNow . Add ( Options . Lockout . DefaultLockoutTimeSpan ) ,
22242224 CancellationToken ) . ConfigureAwait ( false ) ;
22252225 await store . ResetAccessFailedCountAsync ( user , CancellationToken ) . ConfigureAwait ( false ) ;
2226- return await UpdateUserAndRecordMetricAsync ( user , UserUpdateType . AccessFailed , startTimestamp ) . ConfigureAwait ( false ) ;
2226+ return await UpdateUserAndRecordMetricAsync ( user , UserUpdateType . IncrementAccessFailed , startTimestamp ) . ConfigureAwait ( false ) ;
22272227 }
22282228 catch ( Exception ex )
22292229 {
2230- _metrics ? . UpdateUser ( typeof ( TUser ) . FullName ! , result : null , UserUpdateType . AccessFailed , startTimestamp , ex ) ;
2230+ _metrics ? . UpdateUser ( typeof ( TUser ) . FullName ! , result : null , UserUpdateType . IncrementAccessFailed , startTimestamp , ex ) ;
22312231 throw ;
22322232 }
22332233 }
0 commit comments