From 70bc99896b9aaaa4e6eb3f875f7443896f85d758 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 6 Dec 2016 14:48:58 +0200 Subject: [PATCH] change id validation rule on register --- public/js/app/brochure-workspace/register.js | 5 +++-- public/js/app/workspace.js | 2 +- public/templates/page/register.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/js/app/brochure-workspace/register.js b/public/js/app/brochure-workspace/register.js index 1b8d8dd..c262135 100644 --- a/public/js/app/brochure-workspace/register.js +++ b/public/js/app/brochure-workspace/register.js @@ -125,7 +125,7 @@ id : 'idNumber', title : 'ID Number', value : '', - maxlength : 13, + maxlength : 20, onChange : function() { var dig = $(this).val().substring(0, 6); $('#dateOfBirth').val( @@ -698,7 +698,8 @@ confirmEmail: {required: true, email: true, equalTo: "#email"}, pin: {required: true, digits: true}, confirmPin: {required: true, digits: true, equalTo: "#pin"}, - idNumber: {required: true, minlength: 13, maxlength: 13, digits: true}, + //idNumber: {required: true, minlength: 13, maxlength: 13, digits: true}, + idNumber: {required: true, minlength: 3, maxlength: 20, digits: true}, dateOfBirth: {required: true, dateISO: true}, mobile: {required: true, mobile: true}, diff --git a/public/js/app/workspace.js b/public/js/app/workspace.js index 8c82a6e..cecb1d5 100644 --- a/public/js/app/workspace.js +++ b/public/js/app/workspace.js @@ -1162,7 +1162,7 @@ && 'bid4cars.local' != window.location.hostname && 'bid4cars.com.na' != window.location.hostname) { - //alert('Please click ok to refresh this page.'); + alert('Please click ok to refresh this page.'); location.reload(); } console.log('------------ Task Contract Error ------------'); diff --git a/public/templates/page/register.html b/public/templates/page/register.html index 98a4b76..bb38b2c 100644 --- a/public/templates/page/register.html +++ b/public/templates/page/register.html @@ -19,7 +19,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

Registration

- Welcome to Bid4Cars registration section, please ensure you have your company registration and VAT information at hand. + Welcome to Bid4Cars registration section, please ensure you have your ID Document and Address information at hand.

-- 2.20.1