Luna Manager maintenance integration 1. Back up your database and portal. 2. Import database/migrate_maintenance_access.sql into your existing MySQL database. 3. Deploy updated portal_reference PHP files and lib/header.php to the existing web root. 4. Log in as administrator, then open Maintenance PINs from the top navigation or a device page. 5. Enroll a registered device using its device_uuid (NOT numeric database ID). 6. Securely provision the generated JSON to the kiosk with provision_maintenance.py. 7. Generate an 8-digit code; the client must have synchronized time. IMPORTANT: This version stores maintenance secrets in the portal database in plaintext. Protect DB access and backups. Enrollment output exposes a secret; handle it securely. No automatic remote enrollment is implemented; provisioning still requires a secure device-side step.