Files
compor-academy/server/migrations/020_two_factor.sql
Cauê Faleiros 50905eefd7
All checks were successful
CI / Validate frontend and API (push) Successful in 3m5s
CI / Build and publish Docker images (push) Successful in 1m42s
feat: add 2FA, secure cookies and publishing tools
2026-11-06 10:29:37 -03:00

6 lines
297 B
SQL

-- Optional TOTP two-factor authentication for administrators.
alter table users
add column if not exists two_factor_secret text,
add column if not exists two_factor_enabled boolean not null default false,
add column if not exists two_factor_backup_codes jsonb not null default '[]'::jsonb;