From 857512e81ef07b67641a429c09b7b7b403a9a2c6 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 4 Sep 2013 08:35:30 -0700 Subject: need to send the users email to persona if the user logged in with persona. Thanks callahad for pointing this out. --- mediagoblin/plugins/persona/static/js/persona.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mediagoblin/plugins/persona/static') 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({ -- cgit v1.2.3