Kein Auth debug-ausgaben mehr, Environment in docker-compose OK
This commit is contained in:
@@ -8,17 +8,12 @@ export async function login(prevState: any, formData: FormData) {
|
|||||||
const username = formData.get('username') as string;
|
const username = formData.get('username') as string;
|
||||||
const password = formData.get('password') 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) {
|
if (!username || !password) {
|
||||||
return { error: 'Bitte Benutzername und Passwort eingeben' };
|
return { error: 'Bitte Benutzername und Passwort eingeben' };
|
||||||
}
|
}
|
||||||
|
|
||||||
const isValid = verifyCredentials(username, password);
|
const isValid = verifyCredentials(username, password);
|
||||||
|
|
||||||
console.log('Credentials valid:', isValid);
|
|
||||||
|
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
return { error: 'Ungültige Anmeldedaten' };
|
return { error: 'Ungültige Anmeldedaten' };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ services:
|
|||||||
- DB_USER=${DB_USER}
|
- DB_USER=${DB_USER}
|
||||||
- DB_PASS=${DB_PASS}
|
- DB_PASS=${DB_PASS}
|
||||||
- DB_NAME=${DB_NAME}
|
- DB_NAME=${DB_NAME}
|
||||||
|
- AUTH_USERS=${AUTH_USERS}
|
||||||
|
- AUTH_SECRET=${AUTH_SECRET}
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.werte.entrypoints=http
|
- traefik.http.routers.werte.entrypoints=http
|
||||||
|
|||||||
Reference in New Issue
Block a user