Add birthdate handling in member registration and management. Update UI to conditionally require birthdate for new members, and enhance API to enforce birthdate validation. Improve tests to cover new birthdate requirements.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 57s

This commit is contained in:
Torsten Schulz (local)
2026-03-31 07:25:44 +02:00
parent 8ffd267dfc
commit 0fb58af194
9 changed files with 98 additions and 12 deletions

View File

@@ -48,10 +48,10 @@ export default defineEventHandler(async (event) => {
})
}
if (!geburtsdatum) {
if (!geburtsdatum && !id) {
throw createError({
statusCode: 400,
message: 'Geburtsdatum ist erforderlich, um Duplikate zu vermeiden.'
message: 'Geburtsdatum ist fuer neue Mitglieder erforderlich, um Duplikate zu vermeiden.'
})
}