Page MenuHomePhabricator

Date of birth validation in membership form
Closed, ResolvedPublic

Description

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.

Event Timeline

786 subscribed.

Respected Mentor, Please help me in this task .I am intersested in to do so. .Please help me how to start this.?

Aklapper removed 786 as the assignee of this task.Nov 4 2021, 12:31 PM

@786: Welcome to Wikimedia! Please refer to https://www.mediawiki.org/wiki/New_Developers - thanks a lot.

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
kai.nissen removed kai.nissen as the assignee of this task.