Login-/Session-/Passkey-Logik vollständig entfernen

Die App läuft künftig nur noch lokal, daher ist Anmeldung nicht mehr
nötig: Proxy-Middleware, Login-Seite, Session-Handling, Passkey/WebAuthn
(inkl. DB-Tabelle tabletten_passkeys), Logout-Button und der
Einstellungen-Tab (enthielt ausschließlich Passkey-Verwaltung) entfallen.
Der eigenständig per CHECK_SECRET geschützte Cron-Endpoint /api/check
sowie SMTP- und MongoDB-Auth (lib/mailService.ts, lib/mongodb.ts) sind
davon unabhängig und bleiben unverändert. Nicht mehr benötigte
Abhängigkeiten (@simplewebauthn/*, bcryptjs, jose) sowie die
zugehörigen Env-Variablen (AUTH_USERS, AUTH_SECRET, TABLETTEN_RP_*)
wurden aus package.json, compose.yml und docker-compose.yml gestrichen.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-21 14:19:51 +02:00
parent 96043efe46
commit 3b4e893ca1
19 changed files with 2 additions and 1292 deletions
-14
View File
@@ -1,9 +1,6 @@
'use client';
import { useState } from 'react';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import LogoutButton from '@/components/LogoutButton';
import packageJson from '@/package.json';
interface AppLayoutProps {
@@ -11,7 +8,6 @@ interface AppLayoutProps {
}
export default function AppLayout({ children }: AppLayoutProps) {
const pathname = usePathname();
const version = packageJson.version;
const [buildDate] = useState(() =>
process.env.NEXT_PUBLIC_BUILD_DATE || new Date().toLocaleDateString('de-DE', { day: '2-digit', month: '2-digit', year: 'numeric' })
@@ -26,16 +22,6 @@ export default function AppLayout({ children }: AppLayoutProps) {
<div className="app-inner">
{/* Einstellungen und Logout oben rechts */}
<div className="app-logout-bar">
{pathname !== '/einstellungen' && (
<Link href="/einstellungen" className="btn-settings">
Einstellungen
</Link>
)}
<LogoutButton className="btn-logout" />
</div>
{/* Inhaltsbereich */}
<main className="app-main">
{children}