Commit bdfbfdf229e739267882520e76ab6f13e040f5bd
1 parent
8b3f1f2a
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
oauth_client: return person object when finish popup login
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/oauth_client/views/oauth_client_plugin_public/finish.html.erb
1 | 1 | <script> |
2 | 2 | window.addEventListener("message", function(ev) { |
3 | 3 | if (ev.data.message === "requestOauthClientPluginResult") { |
4 | - ev.source.postMessage({ message: "oauthClientPluginResult", logged_in: <%= logged_in? %>, private_token: '<%= private_token %>', user: <%= current_user.to_json %> }, "*"); | |
4 | + ev.source.postMessage({ message: "oauthClientPluginResult", logged_in: <%= logged_in? %>, private_token: '<%= private_token %>', user: <%= current_user.person.to_json %> }, "*"); | |
5 | 5 | } |
6 | 6 | }); |
7 | 7 | </script> | ... | ... |