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>
Tue, 22 Sep 2015 00:45:23 +0000 (20:45 -0400)
commit3d716ca486e8ad04305dceddf240ac16815a8985
treed2d937eacc009ab353451864309cfbef6202e05c
parent573b227747e343efb7cc70f31f4073b5cb2bdb46
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