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>
Sun, 17 Sep 2017 20:10:15 +0000 (16:10 -0400)
commit177dce64e65a7065d15b65c875330bf76180be26
tree29d9aed67feb33631d21e6aa67f7d67c75b4209b
parent16b31b6e4af5c34b35386d84a2849bc9eb0dcd4e
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