aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/persona/static
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/plugins/persona/static')
-rw-r--r--mediagoblin/plugins/persona/static/js/persona.js4
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({