circuitnederland / registrationform

0 stars 0 forks source link

Update the jquery validation plugin used #6

Closed sandrab closed 6 years ago

sandrab commented 6 years ago

(From GDrive document 7.5 point 3). The registrationform uses the jquery validate plugin (https://jqueryvalidation.org/) to validate field input (postcode, phone numbers, iban, etc). This can be improved: a. Update the version used from 1.15.0 to latest (at this moment this is 1.17.0). This improves the iban validation a little bit, making '1' no longer a valid iban. b. Change the cdn used to be one of the official sources (see https://jqueryvalidation.org/) on jsDelivr or cdnjs. c. Remove the js includes from pages that do not need it (index.php, repay.php) - first check if they do not need it.