From 7a46e7f1fa592658415e0da4fe42033a31ce3951 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 23 Nov 2017 18:30:04 +0100 Subject: new account, date field, fixed --- StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js') diff --git a/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js b/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js index 220026c0..ed702a03 100755 --- a/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js +++ b/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js @@ -56,12 +56,14 @@ var SignupView = FormView.extend({ }, validate_fields: function(data, errors){ + console.log(data) if (data.Password.length < 7) { errors.push([ "Password", "Password must be 7 characters or more." ]) } if (data.Password !== data.Password2) { errors.push([ "Password2", "Passwords don't match." ]) } if (! data.Email.match("@")) { errors.push([ "Email", "Email address is not valid." ]) } if (data.Email.toLowerCase() !== data.ConfirmEmail.toLowerCase()) { errors.push([ "ConfirmEmail", "Email addresses don't match." ]) } // if (data.Gender === "NONE") { errors.push([ "Gender", "Please supply your gender." ]) } if (data.DataProfiling !== "true") { errors.push([ "DataProfiling", "You must consent to use this service." ]) } + if (! data.BirthDay) data.BirthDay = '1900-01-01' data.YooxLetter = this.$("[name=YooxLetter]").prop("checked") }, -- cgit v1.2.3-70-g09d2