LP#1361266 Patron self-registration form accepts date of birth in wrong format
authorMichael Peters <mpeters@emeralddata.net>
Thu, 4 Dec 2014 20:56:53 +0000 (15:56 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 5 Jan 2015 20:34:12 +0000 (15:34 -0500)
commit53e57c1dc434f309107f58dda12b1e5c10f9adca
tree3f0f74565e95838f30f228f0d5d0e4e0600ab7ae
parentbef9655b893de972403981a801f3cdfe1993ef61
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/register.tt2