LP#1361266 Patron self-registration form accepts date of birth in wrong format user/mrpeters/lp1361266_opac_registration_date_validation
authorMichael Peters <mpeters@emeralddata.net>
Thu, 4 Dec 2014 20:56:53 +0000 (15:56 -0500)
committerMichael Peters <mpeters@emeralddata.net>
Thu, 4 Dec 2014 21:01:24 +0000 (16:01 -0500)
commitdd3e7e4b4f85a48642d5aa296d0a5c7d7dffaa8e
tree916a63bf8a5b8d883afcfdb30eb5e928859a5cce
parentb915d4bbf2cef462faa0df1bc6cfe324cdfba477
LP#1361266 Patron self-registration form accepts date of birth in wrong format

This patch applys some basic javascript to validate that a date entered is
at least in ISO 8601 format.  This prevents someone from entering "cupcake"
or 55/66/6666 as a valid date of birth by validating the stgu.dob input
at the time of submission.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/src/templates/opac/register.tt2