diff --git a/dashcaddy-api/routes/auth/sso-gate.js b/dashcaddy-api/routes/auth/sso-gate.js index cf60f25..03fe8aa 100644 --- a/dashcaddy-api/routes/auth/sso-gate.js +++ b/dashcaddy-api/routes/auth/sso-gate.js @@ -398,6 +398,14 @@ ft('chat').then(function(r){return r.text()}).then(function(t){ title: 'Signing in to Security...', bg: '#070b10', accent: '#58a6ff', body: `d.textContent='Session verified, opening dashboard...';go('/?direct=1');` }, + rev: { + // rev.sami — revenue dashboard. Same shape as sec: a plain web app + // behind the TOTP gate with no app-specific token. The rev.sami Caddy + // block carries the identical @needsAutoLogin matcher (path / , not + // query direct=1), so ?direct=1 bypasses the redirect loop the same way. + title: 'Signing in to Revenue...', bg: '#0a0f0c', accent: '#34d399', + body: `d.textContent='Session verified, opening dashboard...';go('/?direct=1');` + }, }; const cfg = pages[service];