Changeset 09ecc5f in Klonkt for src/routes


Ignore:
Timestamp:
06/19/2026 10:03:52 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
f83ccf3
Parents:
f33b24a
Message:

ui(admin): Google login on its own Admin page

  • New page /admin/settings/google (own view admin-google.ejs) with the complete Google OAuth config + step-by-step guide + redirect URI.
  • Settings page now shows only a compact "Set up Google login →" card.
  • Link "🔑 Google login" added in the Admin dashboard.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/admin-settings.js

    rf33b24a r09ecc5f  
    139139});
    140140
     141// Google-login op een eigen Beheer-pagina (los van de algemene instellingen).
     142router.get('/google', requireGod, (req, res) => {
     143  renderPage(req, res, 'pages/admin-google', {
     144    pageTitle: 'Google-login',
     145    bodyClass: 'on-admin',
     146    google: {
     147      configured: googleConfigured(),
     148      redirectUri: redirectUri(),
     149      clientId: currentClientId(),
     150      secretSet: clientSecretSet(),
     151    },
     152    success: req.query.success || null,
     153    error: req.query.error || null,
     154  });
     155});
     156
    141157// Google-login (luisteraars) configureren — Client ID + Secret in app_settings.
    142158// De redirect-URI leiden we af van PUBLIC_BASE_URL (zie config/google.js).
Note: See TracChangeset for help on using the changeset viewer.