Files
delivery-tracker/backend/internal/db/migrations/000004_add_login_lockout_fields.up.sql
Egor Pozharov a3929bec8d
Some checks failed
Build and Push Docker Images / build-backend (push) Has been cancelled
Build and Push Docker Images / build-frontend (push) Has been cancelled
implement account lockout after 3 failed login attempts with 5-minute cooldown period
2026-04-29 17:00:37 +06:00

4 lines
116 B
SQL

ALTER TABLE users
ADD COLUMN failed_login_attempts INTEGER NOT NULL DEFAULT 0,
ADD COLUMN locked_until TIMESTAMPTZ;