[medium] Deactivated users keep access #10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium
Affects: main
Files: oidc_controller.ex:163-170 (no Accounts.active? check before log_in_user, unlike user_session_controller.ex:25/51); lib/fuzzy_catalog_web/user_auth.ex:67-76 (fetch_current_scope_for_user doesn't check status, so existing sessions/remember-me cookies survive deactivation).
Fix: check active? in the OIDC path and in fetch_current_scope_for_user; delete the user's tokens when an admin deactivates them.
Found by Nye's audit, 2026-10-18 (static review of main @
1d89af4and jtk/ebook-management @43a849e).