Guest Wi-Fi dashboard card (network + rotating password + join QR)
New home card 'unifi.guest_wifi': shows the guest SSID, the current rotated password (unifi.password_rotation.last_password), and a WPA join QR built from the WIFI: string. Polls app/unifi/guest-card/data (auth) every 60s so it updates the moment the rotation engine changes the password — the QR regenerates client-side to match. Self-hides until enabled with an SSID and a rotated password; grant-gated via Admin -> Settings -> Dashboard Cards. New settings (WiFi rotation section): enable + network name + card title. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -103,6 +103,13 @@ Route::middleware(['web', 'auth', 'app.access:unifi'])
|
||||
});
|
||||
});
|
||||
|
||||
// ── Guest Wi-Fi home-card poll (any logged-in user; card visibility is
|
||||
// grant-gated by the shell). Exempt from the unifi page-grant middleware
|
||||
// because it's a home-page widget, not a unifi page. ──
|
||||
Route::middleware(['web', 'auth'])
|
||||
->get('/app/unifi/guest-card/data', [\Dashboard\Unifi\Http\Controllers\GuestCardController::class, 'data'])
|
||||
->name('unifi.guest-card.data');
|
||||
|
||||
// ── Public API (token-protected) ──────────────────────────────────────────
|
||||
// External integrations (signage, kiosks) hit these without session auth.
|
||||
Route::prefix('api/unifi')->name('unifi.api.')->group(function () {
|
||||
|
||||
Reference in New Issue
Block a user