diff options
Diffstat (limited to 'StoneIsland/www/js/lib/auth/SignupView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/auth/SignupView.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 0fccc06d..3293b3aa 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -5,6 +5,18 @@ var SignupView = FormView.extend({ action: sdk.account.signup, last_data: null, + test_data: { + "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", + "Password": "TestPassword", + "Password2": "TestPassword", + "Gender": "U", + "Name": "TestName", + "Surname": "TestSurname", + "Birthday": "1978-11-12", + "DataProfiling": true, + "DataProfiling2": true, + }, + events: { "click .privacy-msg": "privacy_link", "submit form": "save", @@ -25,6 +37,8 @@ var SignupView = FormView.extend({ this.$form.get(0).reset() this.$msg.html(msg) document.body.className = "signup" + + this.preload() }, validate_presence: { @@ -49,6 +63,8 @@ var SignupView = FormView.extend({ delete data.DataProfiling2 delete data.ConfirmEmail + data.Birthday += "T00:00:00Z" + this.last_data = data console.log(data) }, |
