feat: user blocks for 10 secs after 5 failed login retries #71
52.63% of diff hit (target 0.00%)
View this Pull Request on Codecov
52.63% of diff hit (target 0.00%)
Annotations
Check warning on line 264 in internal/handlers/users/auth/login.go
codecov / codecov/patch
internal/handlers/users/auth/login.go#L263-L264
Added lines #L263 - L264 were not covered by tests
Check warning on line 236 in internal/repository/users/postgres.go
codecov / codecov/patch
internal/repository/users/postgres.go#L235-L236
Added lines #L235 - L236 were not covered by tests
Check warning on line 244 in internal/repository/users/postgres.go
codecov / codecov/patch
internal/repository/users/postgres.go#L243-L244
Added lines #L243 - L244 were not covered by tests
Check warning on line 254 in internal/repository/users/postgres.go
codecov / codecov/patch
internal/repository/users/postgres.go#L254
Added line #L254 was not covered by tests
Check warning on line 260 in internal/repository/users/postgres.go
codecov / codecov/patch
internal/repository/users/postgres.go#L259-L260
Added lines #L259 - L260 were not covered by tests
Check warning on line 270 in internal/repository/users/postgres.go
codecov / codecov/patch
internal/repository/users/postgres.go#L270
Added line #L270 was not covered by tests
Check warning on line 45 in internal/services/users/auth/login.go
codecov / codecov/patch
internal/services/users/auth/login.go#L44-L45
Added lines #L44 - L45 were not covered by tests
Check warning on line 82 in internal/services/users/auth/login.go
codecov / codecov/patch
internal/services/users/auth/login.go#L81-L82
Added lines #L81 - L82 were not covered by tests
Check warning on line 100 in internal/services/users/auth/login.go
codecov / codecov/patch
internal/services/users/auth/login.go#L99-L100
Added lines #L99 - L100 were not covered by tests
Check warning on line 159 in internal/services/users/auth/login.go
codecov / codecov/patch
internal/services/users/auth/login.go#L155-L159
Added lines #L155 - L159 were not covered by tests