feat(auth): accounts, first-run setup and MFA login flow
Adds AuthService with single-use setup code, password login, TOTP and recovery codes, enrollment, account management and local admin reset. Attempts are reserved before Argon2 so parallel guesses cannot outrun the per-account delay or the IP limit, and unknown usernames follow the same schedule as real accounts. Passwords are NFC-normalized; repeated-character and all-digit passwords are refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
deea3e245b
commit
2b71ae41c0
9 files changed
+1998
-10
No files matched your search
@@ -24,6 +24,7 @@ base64 = "0.22"
|
||||
fs2 = "0.4"
|
||||
argon2 = "0.6.0"
|
||||
totp-rs = { version = "6.0.0", features = ["qr", "otpauth"] }
|
||||
unicode-normalization = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3"
|
||||
Reference in new issue
Block a user