implement account lockout after 3 failed login attempts with 5-minute cooldown period
This commit is contained in:
@@ -18,6 +18,8 @@ type Querier interface {
|
||||
GetDeliveryByID(ctx context.Context, id pgtype.UUID) (Delivery, error)
|
||||
GetDeliveryCount(ctx context.Context) ([]GetDeliveryCountRow, error)
|
||||
GetUserByUsername(ctx context.Context, username string) (User, error)
|
||||
RecordFailedLogin(ctx context.Context, username string) (RecordFailedLoginRow, error)
|
||||
ResetLoginFailures(ctx context.Context, username string) error
|
||||
UpdateDelivery(ctx context.Context, arg UpdateDeliveryParams) error
|
||||
UpdateDeliveryStatus(ctx context.Context, arg UpdateDeliveryStatusParams) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user