Commit 8be94aadbdd218acc49f61496953d9f9ea10bdf7
1 parent
e735ba01
Exists in
master
and in
2 other branches
user object return parameters in user context
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
js/main.js
... | ... | @@ -1053,7 +1053,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers |
1053 | 1053 | .addClass('alert-success') |
1054 | 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 | 1438 | $loginPanel.hide(); |
1439 | 1439 | } |
1440 | 1440 | |
1441 | - $(document).trigger('login:success', data); | |
1441 | + $(document).trigger('login:success', data['user']); | |
1442 | 1442 | }).fail(function(data) { |
1443 | 1443 | |
1444 | 1444 | $message.show(); |
... | ... | @@ -1712,7 +1712,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers |
1712 | 1712 | if($sectionContent && $sectionContent.length > 0){ |
1713 | 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 | 1716 | } else { |
1717 | 1717 | $signupForm.find('.cancel-signup').click(); |
1718 | 1718 | $signupForm.hide(); | ... | ... |