diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-09-04 08:35:30 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-09-04 08:45:08 -0700 |
commit | 857512e81ef07b67641a429c09b7b7b403a9a2c6 (patch) | |
tree | 89a04e722dd736ca8b2e813695a045155172432e /mediagoblin/plugins/persona/static/js | |
parent | d87d099dd8cdd521488b57bc8956f570e96e6360 (diff) | |
download | mediagoblin-857512e81ef07b67641a429c09b7b7b403a9a2c6.tar.lz mediagoblin-857512e81ef07b67641a429c09b7b7b403a9a2c6.tar.xz mediagoblin-857512e81ef07b67641a429c09b7b7b403a9a2c6.zip |
need to send the users email to persona if the user logged in with persona.
Thanks callahad for pointing this out.
Diffstat (limited to 'mediagoblin/plugins/persona/static/js')
-rw-r--r-- | mediagoblin/plugins/persona/static/js/persona.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/plugins/persona/static/js/persona.js b/mediagoblin/plugins/persona/static/js/persona.js index 47006e3b..76a7757a 100644 --- a/mediagoblin/plugins/persona/static/js/persona.js +++ b/mediagoblin/plugins/persona/static/js/persona.js @@ -39,11 +39,13 @@ $(document).ready(function () { } var logout_url = document.getElementById('_logout_url').value; + var persona_user = document.getElementById('_persona_user').value; navigator.id.watch({ + loggedInUser: persona_user || null, onlogin: function(assertion) { document.getElementById('_assertion').value = assertion; - document.getElementById('_persona_login').submit() + document.getElementById('_persona_login').submit(); }, onlogout: function() { $.ajax({ |