Migrate current password hashing to Argon2id
This commit is contained in:
2
TESTS.md
2
TESTS.md
@@ -38,7 +38,7 @@ stateDiagram-v2
|
||||
- Database uniqueness guard enforces single owner row (`IsOwner=true`) even if writes bypass endpoint-level checks.
|
||||
- `/api/auth/options` reports owner presence for registration UI behavior.
|
||||
- Login success updates LastLoginAt and sets DisplayName if null; rejects wrong password/username; enforces length limits.
|
||||
- Successful login upgrades legacy password-hash versions to current hash parameters.
|
||||
- Successful login upgrades legacy password-hash versions to current Argon2id parameters.
|
||||
- Logout clears cookie.
|
||||
- EnsurePlayerExistsMiddleware: signed cookie for deleted player returns 401 and clears auth.
|
||||
- Cookie contains admin claim; non-admin cookie cannot access admin routes (401/403 via filter).
|
||||
|
||||
Reference in New Issue
Block a user