diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-11-23 18:30:04 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-11-23 18:30:04 +0100 |
| commit | 7a46e7f1fa592658415e0da4fe42033a31ce3951 (patch) | |
| tree | 8eaaa2e50c4d7a1227aeba2e73152d36352920e5 /StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js | |
| parent | f12f002f629a04b6596f1b8df11d41c693df185d (diff) | |
new account, date field, fixed
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js | 2 |
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") }, |
