summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/SignupView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-19 17:30:51 -0500
committerJules Laplace <jules@okfoc.us>2015-11-19 17:30:51 -0500
commit8e048cfb6d758759b563194ca21eca14d8302800 (patch)
treeac47f9a2e37beb3d73d3273160a15ba17456e39b /StoneIsland/www/js/lib/account/SignupView.js
parent82abd1a1d018b2906e0cdb2338d3e29bbcc022af (diff)
type=date
Diffstat (limited to 'StoneIsland/www/js/lib/account/SignupView.js')
-rw-r--r--StoneIsland/www/js/lib/account/SignupView.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/account/SignupView.js b/StoneIsland/www/js/lib/account/SignupView.js
index 04600517..123b47a6 100644
--- a/StoneIsland/www/js/lib/account/SignupView.js
+++ b/StoneIsland/www/js/lib/account/SignupView.js
@@ -25,17 +25,22 @@ var SignupView = FormView.extend({
"Name": "Please enter your first name.",
"Surname": "Please enter your last name.",
"Email": "Please enter a valid email address.",
+ "ConfirmEmail": "Please enter a valid email address.",
"Password": "Please enter your password.",
"Password2": "Please enter your password again.",
+ "YooxLetter": "You must agree to data profiling.",
"DataProfiling": "You must agree to data profiling.",
},
validate_fields: function(errors){
if (data.Password !== data.Password2) { errors.push("Password2", "Passwords don't match.") }
+ if (data.Email !== data.ConfirmEmail) { errors.push("ConfirmEmail", "Email addresses don't match.") }
+ if (! data.YooxLetter) { data.YooxLetter = "false" }
+ if (! data.DataProfiling) { data.DataProfiling = "false" }
},
success: function(data){
- // change login in ui to logout or whatever
+ auth.view_logged_in()
},
error: function(data){