diff options
Diffstat (limited to 'StoneIsland/www/js/lib/auth')
| -rw-r--r-- | StoneIsland/www/js/lib/auth/LoginView.js | 4 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/auth/SignupView.js | 13 |
2 files changed, 3 insertions, 14 deletions
diff --git a/StoneIsland/www/js/lib/auth/LoginView.js b/StoneIsland/www/js/lib/auth/LoginView.js index b088190f..b761b5e8 100644 --- a/StoneIsland/www/js/lib/auth/LoginView.js +++ b/StoneIsland/www/js/lib/auth/LoginView.js @@ -37,7 +37,7 @@ var LoginView = FormView.extend({ success: function(data){ // console.log(data) - app.account.logged_in() + app.account.logged_in(function(){ app.router.go("store") }) }, error: function(data){ @@ -46,7 +46,7 @@ var LoginView = FormView.extend({ }, cancel: function(){ - auth.defer_add_to_cart = null + auth.deferred_product = null }, }) diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 3293b3aa..fe0e28db 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -86,7 +86,7 @@ var SignupView = FormView.extend({ auth.user.name = this.last_data.Name auth.user.surname = this.last_data.Surname auth.user.email = this.last_data.Email - app.account.logged_in() + app.account.logged_in(function(){ app.router.go("store") }) }, error: function(data){ @@ -97,15 +97,4 @@ var SignupView = FormView.extend({ auth.deferred_product = null }, -/* - var new_user_data = { - "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", - "Password": "TestPassword", - "Gender": "M", - "Name": "TestName", - "Surname": "TestSurname", - "DataProfiling": true, - } -*/ - })
\ No newline at end of file |
