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>
Fri, 26 May 2017 11:54:32 +0000 (07:54 -0400)
commit41cccaac68f71d2987dde051b4b1e0a2debfcf16
tree48f1c6826332033623b16083c7359888c25c89d7
parent3f5fccc1c1a5cd053aa60d16ee742c41898701f3
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