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
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 57s
This commit is contained in:
@@ -150,6 +150,7 @@ export default defineEventHandler(async (event) => {
|
||||
loginRole: roles[0] || 'mitglied', // Rückwärtskompatibilität
|
||||
lastLogin: user.lastLogin,
|
||||
isMannschaftsspieler: user.isMannschaftsspieler === true || mergedMembers[matchedManualIndex].isMannschaftsspieler === true,
|
||||
geburtsdatum: mergedMembers[matchedManualIndex].geburtsdatum || user.geburtsdatum || '',
|
||||
firstName: mergedMembers[matchedManualIndex].firstName || firstName,
|
||||
lastName: mergedMembers[matchedManualIndex].lastName || lastName,
|
||||
editable: true
|
||||
@@ -176,6 +177,7 @@ export default defineEventHandler(async (event) => {
|
||||
name: user.name,
|
||||
firstName,
|
||||
lastName,
|
||||
geburtsdatum: user.geburtsdatum || '',
|
||||
email: user.email,
|
||||
phone: user.phone || '',
|
||||
address: '',
|
||||
|
||||
Reference in New Issue
Block a user