Commit 4b77d1851a35ca9b8342cd8f18023454f4bd4d29
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'production' of gitlab.com:participa/noosfero into production
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/oauth_client/views/oauth_client_plugin_public/finish.html.erb
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | <script> |
8 | 8 | window.addEventListener("message", function(ev) { |
9 | 9 | if (ev.data.message === "requestOauthClientPluginResult") { |
10 | - ev.source.postMessage({ message: "oauthClientPluginResult", logged_in: <%= logged_in? %>, private_token: '<%= private_token %>', user: <%= current_user.to_json %> }, "*"); | |
10 | + ev.source.postMessage({ message: "oauthClientPluginResult", logged_in: <%= logged_in? %>, private_token: '<%= private_token %>', user: <%= (logged_in? ? {:login => current_user.login, :person => {:identifier => current_user.person.identifier, :name => current_user.person.name}} : {}).to_json %> }, "*"); | |
11 | 11 | } |
12 | 12 | }); |
13 | 13 | </script> | ... | ... |
plugins/proposals_discussion