LuminaWebsite/includes
Maaxxs 01719dd958 Login: Discord first, pending approval, groups synced from Discord roles
The login page leads with "Mit Discord einloggen"; username/password stays
available below and can be allowed or refused per user. The Discord login
asks for identify + guilds.members.read, so the site itself can check that
the account is on the legion's server and read its roles - no bot token on
the webspace. Unknown accounts get a new user in the new status "pending",
Discord-only, who sees nothing but a "Freischaltung ausstehend" page and has
no permissions until approved from the user list.

Permission groups can be linked to a Discord role. Linked groups are granted
and revoked from the member's roles at every Discord login and then every
five minutes during a session, using the stored (refreshed) user token;
leaving the server removes them and ends a Discord session. Manual groups are
untouched, and several linked roles simply add up their groups.

New columns are added automatically on first request (includes/schema.php),
since the login page itself needs them; existing accounts keep password login.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 07:49:47 +02:00
..
.htaccess Fix 500 error from unguarded RewriteEngine directive in root .htaccess 2026-09-18 06:27:09 +02:00
auth.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
bootstrap.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
db.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
discord.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
discord_auth.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
events_api.php Events: new tab for the bot's scheduled event reminders 2026-09-20 12:40:56 +02:00
footer.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
forbidden.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
functions.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
header.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
permissions.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
raids_api.php Reports: exclude roles from auto-mute; wire up new landscape backgrounds 2026-09-20 02:27:37 +02:00
schema.php Login: Discord first, pending approval, groups synced from Discord roles 2026-09-21 07:49:47 +02:00
tactics.php Karte: tactics in steps drawn on the map, show/hide all categories 2026-09-21 07:21:45 +02:00