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)
committerJason Stephenson <jstephenson@mvlc.org>
Fri, 4 Sep 2015 15:52:26 +0000 (11:52 -0400)
commit48b7fabf5991ca92f197444fc52524b59a76ed46
tree8bd990967ae774205a47e704dc2ce16e17430e19
parent17082b62f2329f70d8128677d9bfaccb11896271
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>
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/src/templates/opac/register.tt2