Commit 8be94aadbdd218acc49f61496953d9f9ea10bdf7

Authored by Leandro Santos
1 parent e735ba01

user object return parameters in user context

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
@@ -1053,7 +1053,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers @@ -1053,7 +1053,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers
1053 .addClass('alert-success') 1053 .addClass('alert-success')
1054 .show(); 1054 .show();
1055 1055
1056 - $(document).trigger('login:success', response); 1056 + $(document).trigger('login:success', response['user']);
1057 } 1057 }
1058 1058
1059 }, 1059 },
@@ -1438,7 +1438,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers @@ -1438,7 +1438,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers
1438 $loginPanel.hide(); 1438 $loginPanel.hide();
1439 } 1439 }
1440 1440
1441 - $(document).trigger('login:success', data); 1441 + $(document).trigger('login:success', data['user']);
1442 }).fail(function(data) { 1442 }).fail(function(data) {
1443 1443
1444 $message.show(); 1444 $message.show();
@@ -1712,7 +1712,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers @@ -1712,7 +1712,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers
1712 if($sectionContent && $sectionContent.length > 0){ 1712 if($sectionContent && $sectionContent.length > 0){
1713 Main.displaySuccess($sectionContent, 'Cadastro efetuado com sucesso', 1000, 'icon-user-created'); 1713 Main.displaySuccess($sectionContent, 'Cadastro efetuado com sucesso', 1000, 'icon-user-created');
1714 } 1714 }
1715 - $(document).trigger('login:success', data); 1715 + $(document).trigger('login:success', data['user']);
1716 } else { 1716 } else {
1717 $signupForm.find('.cancel-signup').click(); 1717 $signupForm.find('.cancel-signup').click();
1718 $signupForm.hide(); 1718 $signupForm.hide();