V 1.0.1: Auth erfolgreich

This commit is contained in:
2026-03-01 08:35:46 +00:00
parent 1ccd66b307
commit 8c6d1bcf6d
3 changed files with 1 additions and 43 deletions

View File

@@ -8,16 +8,11 @@ export async function login(prevState: any, formData: FormData) {
const username = formData.get('username') as string;
const password = formData.get('password') as string;
console.log('Login attempt:', { username, passwordLength: password?.length });
console.log('AUTH_USERS env:', process.env.AUTH_USERS);
if (!username || !password) {
return { error: 'Bitte Benutzername und Passwort eingeben' };
}
const isValid = verifyCredentials(username, password);
console.log('Credentials valid:', isValid);
if (!isValid) {
return { error: 'Ungültige Anmeldedaten' };