feat(ux): eingeloggter Kunde landet im Konto statt Login/Marketing
- renderLogin/renderRegister: bei vorhandenem Token sofort → /konto/ (behebt 'man bleibt nicht eingeloggt' — Formular wurde trotz Token gezeigt) - nav-account.js (auf allen Seiten via custom/head-end.html): CTAs auf /register/ und Navbar 'Anmelden' (/login/) → 'Mein Konto' (/konto/) sobald eingeloggt. So führt /hosting/ den Kunden direkt ins Konto. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -64,6 +64,9 @@
|
||||
|
||||
// ── Login ──────────────────────────────────────────────────────────────
|
||||
function renderLogin() {
|
||||
// Schon eingeloggt? Dann nicht das Login-Formular zeigen, sondern direkt
|
||||
// ins Konto — der häufigste Grund für "ich muss mich ständig neu anmelden".
|
||||
if (tok.isLoggedIn) return go("/konto/");
|
||||
root.innerHTML = card(authCard(
|
||||
'<div class="hosting-title">Anmelden</div>' +
|
||||
'<div class="hosting-sub">Zu Ihrer Rapport-Instanz</div>' +
|
||||
@@ -95,6 +98,7 @@
|
||||
|
||||
// ── Registrierung ──────────────────────────────────────────────────────
|
||||
function renderRegister() {
|
||||
if (tok.isLoggedIn) return go("/konto/");
|
||||
root.innerHTML = card(authCard(
|
||||
'<div class="hosting-title">Konto erstellen</div>' +
|
||||
'<div class="hosting-sub">In Minuten zur eigenen Instanz</div>' +
|
||||
|
||||
Reference in New Issue
Block a user