Einstellungen Passwort ändern

This commit is contained in:
Carl Mahnke
2025-05-20 16:55:18 +02:00
parent 058a84025c
commit 42b2767c70
4 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ export const POST = defineApiRoute({
if (input.name) updateData.name = input.name;
if (input.vorname) updateData.vorname = input.vorname;
if (input.ort) updateData.ort = input.ort;
// if (input.passwort) updateData.passwort = hashPassword(input.passwort);
if (input.passwort.length != 0) updateData.passwort = hashPassword(input.passwort);
if (input.plz) updateData.plz = input.plz;
if (input.profilbild) updateData.profilbild = input.profilbild;
if (input.telefon) updateData.telefon = input.telefon;