Commit graph

3 commits

Author SHA1 Message Date
tsoganov
537e75e162 Fixed admin contact validation and repp error 2025-04-23 17:03:26 +03:00
oleghasjanov
7799727867 feat: add age validation for admin contacts
- Add AgeValidation module for consistent age checks
- Validate admin contacts must be at least 18 years old
- Move age validation logic from Domain to shared module
- Add tests for admin contact age validation
- Fix JSON format for admin_contacts_allowed_ident_type setting

This change ensures that administrative contacts must be adults (18+),
using the same age validation logic as for registrants. The validation
works with both birthday and Estonian ID formats. Settings are now
properly stored as JSON strings for consistent parsing.
2025-03-20 16:37:38 +02:00
Oleg Hasjanov
3b38be71a8 added tests 2021-02-19 16:50:42 +02:00