LuminaWebsite/admin
Maaxxs 27470d0fd7 Accounts: whoever leaves the Discord server is deactivated; on return the account waits for approval again
Asked for: "wenn ein mitglied die legion verlässt, soll das benutzerprofil deaktiviert werden" - decided: leaving the
Discord server (also kick or ban) counts as leaving the legion; a returning member goes back to "Wartet auf
Freischaltung".

- includes/discord_auth.php: discord_member_left() disables active/pending accounts (status disabled, users.left_server_at,
  session_epoch + 1, Discord groups removed, log entry "Automatisch (...)"); developers stay untouched.
  discord_member_returned() puts such accounts back to pending (left_server_at cleared); accounts disabled by hand
  stay locked. discord_live_check() calls both, so the session check and "Jetzt mit Discord abgleichen" deactivate too.
- bot_api.php for the new bot cog (cogs/legion_members.py): member_left, member_joined, legion_accounts (Discord IDs of
  active/pending accounts) and legion_sync (the ones the bot misses on the server). Other guilds are ignored; a sync
  that would disable more than half of the accounts is refused with a warning in the log (at most once a day).
- discord_callback.php: a Discord login of a returned member puts the account back to pending instead of "gesperrt".
- includes/auth.php: logout message says the account was deactivated.
- Admin: users list shows "Discord verlassen am ...", the user form a hint; setting the status by hand clears the mark.
- Schema version 67 (users.left_server_at); account deletion clears it.
- Privacy page (automatic deactivation, bot sync), patch note, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:30:37 +02:00
..
audit.php Audit log, abuse protection, gallery comments with moderation, safe image uploads, 404 page 2026-09-21 21:57:34 +02:00
bot.php Report panel: explains the rules with the real values, pings a chosen role, names the leadership 2026-09-25 12:43:32 +02:00
bot_action.php Report panel: explains the rules with the real values, pings a chosen role, names the leadership 2026-09-25 12:43:32 +02:00
discord_sync_action.php Accounts: whoever leaves the Discord server is deactivated; on return the account waits for approval again 2026-09-27 23:30:37 +02:00
dues.php Legion dues: the bot reminds open members by DM; premades open in the leadership's order 2026-09-27 01:32:43 +02:00
dues_action.php Legion dues: the bot reminds open members by DM; premades open in the leadership's order 2026-09-27 01:32:43 +02:00
gear_items.php Gear planner: skill icons are checked against the game client and replaced where aion2hub is wrong 2026-09-26 00:22:34 +02:00
gear_items_action.php Gear planner: skill icons are checked against the game client and replaced where aion2hub is wrong 2026-09-26 00:22:34 +02:00
gear_skills.php Skill planner: set pages Ausrüstung / Skills / Stigmen, specializations and stigma bonuses with their effects from the aion2hub build planner 2026-09-23 20:00:11 +02:00
legal.php Privacy policy: the mailbox info@lumina-ascendens.de is at Living-Bots 2026-09-25 22:59:25 +02:00
legal_action.php Impressum and privacy policy, third-party videos and images load only after a click 2026-09-24 16:26:54 +02:00
reset.php Member feedback: raid input checks and fixed raid points, premades in the raid form, live raid page, Lumina-style dialogs, leadership calendar entries, class-based weapon picker, map and tactics fixes 2026-09-23 16:12:18 +02:00
reset_action.php Developer page to reset test data by area (points, shop, warehouse, gallery, wiki, audit log, ...) 2026-09-22 08:33:38 +02:00
role_delete.php Group icons: groups get an icon in front of their name, like the role icons in Discord 2026-09-25 12:35:02 +02:00
role_form.php Members: ranks keep their tag in the rank view, also a group with its own section like Brigadegeneral 2026-09-27 22:40:27 +02:00
role_order_action.php Tag order: the leadership sets the order of the group tags 2026-09-25 22:59:25 +02:00
role_rank_action.php Members: the list is sorted by rank within its sections, the rank order is configurable 2026-09-26 01:23:48 +02:00
roles.php Members: ranks keep their tag in the rank view, also a group with its own section like Brigadegeneral 2026-09-27 22:40:27 +02:00
settings_action.php Calendar: raids and events as a monthly view plus member entries with "I'm in" 2026-09-21 22:26:17 +02:00
site.php Member feedback: raid input checks and fixed raid points, premades in the raid form, live raid page, Lumina-style dialogs, leadership calendar entries, class-based weapon picker, map and tactics fixes 2026-09-23 16:12:18 +02:00
site_action.php Announcements: option to hide the author name on the banner (still recorded in the audit log) 2026-09-22 18:06:42 +02:00
user_approve.php Log all administrative website actions to the Discord log channel via the bot API 2026-09-21 19:16:54 +02:00
user_delete.php Impressum and privacy policy, third-party videos and images load only after a click 2026-09-24 16:26:54 +02:00
user_export.php Account deletion also anonymizes the member at the Discord bot, runs after the response 2026-09-24 17:10:27 +02:00
user_export_action.php Data export and account deletion (anonymization) with a grace period 2026-09-24 17:02:42 +02:00
user_form.php Accounts: whoever leaves the Discord server is deactivated; on return the account waits for approval again 2026-09-27 23:30:37 +02:00
user_security.php Audit log, abuse protection, gallery comments with moderation, safe image uploads, 404 page 2026-09-21 21:57:34 +02:00
users.php Accounts: whoever leaves the Discord server is deactivated; on return the account waits for approval again 2026-09-27 23:30:37 +02:00