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 ausgaben_passkeys), Logout-Button und der Passwort-Hash-
Generator (scripts/generate-password.js) entfallen. Der Einstellungen-Tab
enthielt ausschließlich Passkey-Verwaltung und wurde daher ebenfalls
entfernt. Nicht mehr benötigte Abhängigkeiten (@simplewebauthn/*,
bcryptjs, jose) sowie die zugehörigen Env-Variablen (AUTH_USERS,
AUTH_SECRET, AUSGABEN_RP_*) wurden aus package.json, Docker-Compose-
Dateien und Dokumentation gestrichen. AUTH_README.md komplett entfernt.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-21 13:58:46 +02:00
parent d3718da1f8
commit bacd11f722
25 changed files with 22 additions and 1816 deletions
+1 -14
View File
@@ -4,8 +4,7 @@ import { useState, useEffect } from 'react';
import AusgabenForm from '@/components/AusgabenForm';
import AusgabenList from '@/components/AusgabenList';
import MonatsStatistik from '@/components/MonatsStatistik';
import TabLayout, { SETTINGS_TAB } from '@/components/TabLayout';
import Passkeys from '@/components/Passkeys';
import TabLayout from '@/components/TabLayout';
import { AusgabenEntry } from '@/types/ausgaben';
const MAX_ENTRIES = 15;
@@ -19,7 +18,6 @@ export default function Home() {
useEffect(() => {
setSelectedEntry(null); // Clear selected entry when switching tabs
if (activeTab === SETTINGS_TAB) return; // Einstellungen laden keine Einträge
fetchRecentEntries();
}, [activeTab]);
@@ -62,17 +60,6 @@ export default function Home() {
window.scrollTo({ top: 0, behavior: 'smooth' });
};
if (activeTab === SETTINGS_TAB) {
return (
<TabLayout activeTab={activeTab} onTabChange={setActiveTab}>
<div>
<h2 className="text-xl font-semibold mb-4">Einstellungen</h2>
<Passkeys />
</div>
</TabLayout>
);
}
return (
<TabLayout activeTab={activeTab} onTabChange={setActiveTab}>
<div>