Phase 10: Mandantenfähigkeit (#15)

This commit was merged in pull request #15.
This commit is contained in:
2026-09-05 13:47:46 +00:00
parent 2b53556175
commit 91742a0dd7
98 changed files with 3810 additions and 201 deletions
+7 -8
View File
@@ -146,10 +146,11 @@ export const personRouter = router({
throw new TRPCError({ code: "NOT_FOUND", message: "Diese Person gibt es nicht." });
}
// Der Hash gehört auch dann nicht nach draußen, wenn er nur im Speicher
// liegt — das Feld wird hier ausdrücklich entfernt.
const { passwortHash: _hash, ...ohneGeheimnis } = person;
return ohneGeheimnis;
// Bis Phase 9 wurde hier der Passwort-Hash aus dem Ergebnis geschnitten.
// Das ist nicht mehr nötig: die Anmeldedaten liegen seit Phase 10 am
// `Benutzer`, und eine Personenabfrage kann sie gar nicht mehr
// mitbringen. Die Sorgfaltsmaßnahme ist durch eine Struktur ersetzt.
return person;
});
}),
@@ -177,8 +178,7 @@ export const personRouter = router({
userAgent: ctx.userAgent,
});
const { passwortHash: _hash, ...ohneGeheimnis } = person;
return ohneGeheimnis;
return person;
}),
),
@@ -215,8 +215,7 @@ export const personRouter = router({
userAgent: ctx.userAgent,
});
const { passwortHash: _hash, ...ohneGeheimnis } = nachher;
return ohneGeheimnis;
return nachher;
}),
),