fix auth: validate logout body, harden WebAuthn, optimize list_users
- Raise ValueError on missing request body in auth_logout - Add username check in verify_authentication to prevent credential reuse - Replace N+1 queries in list_users with single JOIN query
This commit is contained in:
@@ -53,6 +53,7 @@ Q_SELECT_WEBAUTHN_COUNTS = "select_webauthn_counts"
|
||||
Q_DELETE_WEBAUTHN = "delete_webauthn"
|
||||
Q_UPDATE_WEBAUTHN_SIGN_COUNT = "update_webauthn_sign_count"
|
||||
Q_SELECT_ALL_USERS = "select_all_users"
|
||||
Q_SELECT_USERS_WITH_PERMS = "select_users_with_perms"
|
||||
Q_SELECT_USER_JWT_SECRET = "select_user_jwt_secret"
|
||||
Q_UPDATE_JWT_SECRET = "update_jwt_secret"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user