feat(admin): add subscription-status mutation route
Wires is_admin(), SUBSCRIPTION_STATUSES/get_current/set_status, and log_action() into POST /admin/actions/subscription-status: validates the requested status and that subscription_id matches the user's current subscription, applies the change, and logs an audit entry. Registers the admin blueprint in init_auth() and documents ADMIN_EMAIL in .template.env. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,9 @@ USERS_DB_PATH=./users.sqlite
|
||||
SECRET_KEY= # à générer : python -c "import secrets; print(secrets.token_hex(32))"
|
||||
APP_BASE_URL=http://localhost:8050
|
||||
|
||||
# Panneau admin interne (accès à /admin, protégé par cette adresse)
|
||||
ADMIN_EMAIL=
|
||||
|
||||
# Connexion LinkedIn (OpenID Connect) — créer une app sur le LinkedIn Developer Portal,
|
||||
# activer "Sign In with LinkedIn using OpenID Connect", déclarer le redirect URI
|
||||
# {APP_BASE_URL}/auth/linkedin/callback
|
||||
|
||||
Reference in New Issue
Block a user