Current behaviour: Users who want to apply for a membership can enter random characters (letters, numbers,..) in the date of birth form field,
the validation is treated as optional, only a hint is shown.
Description
Related Objects
Event Timeline
Respected Mentor, Please help me in this task .I am intersested in to do so. .Please help me how to start this.?
@786: Welcome to Wikimedia! Please refer to https://www.mediawiki.org/wiki/New_Developers - thanks a lot.
https://github.com/wmde/fundraising-frontend-content/commit/b4de560c6b314a357c8f42bacb9df5a104c92150
https://gitlab.com/fun-tech/fundraising-app-frontend/-/merge_requests/129
changes in https://github.com/wmde/fundraising-memberships/blob/a24ad38d0694751312f6e2cbaa043bdb3928cee9/src/UseCases/ApplyForMembership/MembershipApplicationValidator.php#L134
should also be made because strtotime() assumes MM/DD/YYYY
I deployed to https://testing01.wikimedia.customers.manitu.net/apply-for-membership
the date of birth should now validate correctly:
- allow empty field ( updated regex allows it)
- allow . and / notation
- require reasonable dates ( e.g. not 31.22.1870 )
- still store all valid fields correctly
PR is squashed,
refactored code got again deployed to https://testing01.wikimedia.customers.manitu.net/apply-for-membership