V 2.1.0 Verbesserungen von Claud Code eingefügt

This commit is contained in:
2026-04-27 10:39:09 +02:00
parent a7863c519f
commit 38c18a5ead
7 changed files with 22 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ export async function login(prevState: any, formData: FormData) {
return { error: 'Bitte Benutzername und Passwort eingeben' };
}
const isValid = verifyCredentials(username, password);
const isValid = await verifyCredentials(username, password);
if (!isValid) {
return { error: 'Ungültige Anmeldedaten' };

View File

@@ -30,6 +30,7 @@ export default function Home() {
'Cache-Control': 'no-cache',
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
if (data.success) {
setEntries(data.data);