summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/auth/SignupView.js2
1 files changed, 2 insertions, 0 deletions
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")
},