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
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:
1 parent
2f57554154
commit
da97fd4fb1
30 files changed
+2145
-27
No files matched your search
@@ -330,6 +330,11 @@
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.sc-label-optional {
|
||||
color: var(--sc-muted-fg);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.sc-input,
|
||||
.sc-select,
|
||||
.sc-textarea {
|
||||
@@ -423,6 +428,37 @@
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.sc-auth-reset {
|
||||
display: grid;
|
||||
gap: 0.625rem;
|
||||
margin-top: 1.25rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--sc-border);
|
||||
}
|
||||
|
||||
.sc-auth-reset-hint {
|
||||
color: var(--sc-subtle-fg);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.sc-auth-reset-link {
|
||||
display: block;
|
||||
margin: 1.25rem auto 0;
|
||||
padding: 0;
|
||||
color: var(--sc-subtle-fg);
|
||||
font: inherit;
|
||||
font-size: 0.75rem;
|
||||
text-decoration: underline;
|
||||
background: none;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sc-auth-reset-link:hover {
|
||||
color: var(--sc-fg);
|
||||
}
|
||||
|
||||
.sc-dialog-backdrop {
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
|
||||
Reference in new issue
Block a user