From 70f367216ff5af3731bced4ec0b206e1c8a4da2c Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 19 Feb 2013 21:55:26 -0500 Subject: Bug 842784 - Persona sign in automatically signs in user --- .../en/default/hook/global/header-additional_header.html.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl b/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl index d4cc2132e..f440247b3 100644 --- a/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl +++ b/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl @@ -32,9 +32,8 @@ function createHidden(name, value, form) { } function persona_sign_in() { - navigator.id.request({ siteName: '[% terms.BugzillaTitle FILTER js %]' }); navigator.id.watch({ - loggedInUser: [% IF user.id %]'[% user.login FILTER js %]'[% ELSE %]null[% END %], + loggedInUser: null, onlogin: function(assertion) { var form = document.createElement('form'); form.action = '[% login_target FILTER js %]'; @@ -61,5 +60,6 @@ function persona_sign_in() { return true; } }); + navigator.id.request({ siteName: '[% terms.BugzillaTitle FILTER js %]' }); } -- cgit v1.2.3-24-g4f1b