diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-02-20 03:55:26 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-02-20 03:55:26 +0100 |
commit | 70f367216ff5af3731bced4ec0b206e1c8a4da2c (patch) | |
tree | 10a32dd5335c7daa2fc453092dc3e3eae3c1bf72 /extensions | |
parent | 4ec4e6487da94e17041930b42cb92571d82d691d (diff) | |
download | bugzilla-70f367216ff5af3731bced4ec0b206e1c8a4da2c.tar.gz bugzilla-70f367216ff5af3731bced4ec0b206e1c8a4da2c.tar.xz |
Bug 842784 - Persona sign in automatically signs in user
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
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 %]' }); } </script> |