feat(auth): implement TOTP setup and management
Lint / Lint (Node/Svelte) (push) Successful in 24s
Lint / Lint (Go) (push) Successful in 28s
Lint / Lint (Python) (push) Failing after 14s
Tests / Test (Node/Svelte) (push) Successful in 18s
Tests / Test (Go) (push) Successful in 25s
Tests / Test (Python) (push) Successful in 12s

- Added TOTP support for two-factor authentication in the auth module.
- Introduced new types and interfaces for TOTP setup and token actions in the web UI.
- Created backend logic for generating and verifying TOTP secrets and tokens.
- Implemented user management features including role assignments and user CRUD operations.
- Enhanced UI components for managing users and TOTP settings.
- Added styles for optional labels and authentication reset links.
- Implemented reset code generation and validation for admin accounts.
This commit is contained in:
Gabriel20xx committed 2026-08-05 14:57:01 +02:00
1 parent 2f57554154
commit da97fd4fb1
30 files changed
+2145 -27

No files matched your search

+14
View File
@@ -11,9 +11,23 @@ export {
export {
AUTH_SCHEMA,
AuthStore,
RESET_CODE_TTL_MS,
ResetManager,
createSessionToken,
hashPassword,
hashToken,
USER_ROLES,
canAssignRole,
canManageUsers,
normalizeRole,
verifyPassword,
} from './auth.js';
export {
TOTP_DIGITS,
TOTP_PERIOD_SECONDS,
TOTP_WINDOW,
generateTotpSecret,
totpProvisioningUri,
verifyTotp,
} from './totp.js';
export { runMigrations } from './migrate.js';