summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/auth/SignupView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-21 18:09:41 -0500
committerJules Laplace <jules@okfoc.us>2015-11-21 18:09:41 -0500
commitfc9e5305994c5c98d7960acf78615878e1d16dfe (patch)
tree7faf3a53f814a2b7eeba875dedb2d868bf34c514 /StoneIsland/www/js/lib/auth/SignupView.js
parentd6eea989f63e1e51563daa64873ce33166bc28c0 (diff)
gender dropdown
Diffstat (limited to 'StoneIsland/www/js/lib/auth/SignupView.js')
-rw-r--r--StoneIsland/www/js/lib/auth/SignupView.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js
index a29b4657..b7095a98 100644
--- a/StoneIsland/www/js/lib/auth/SignupView.js
+++ b/StoneIsland/www/js/lib/auth/SignupView.js
@@ -36,6 +36,7 @@ var SignupView = FormView.extend({
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.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.DataProfiling2 !== "true") { errors.push([ "DataProfiling2", "You must consent to use this service." ]) }
if (! data.YooxLetter) { data.YooxLetter = "false" }