summaryrefslogtreecommitdiffstats
path: root/extensions/Persona/template/en/default
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-02-22 09:32:59 +0100
committerByron Jones <bjones@mozilla.com>2013-02-22 09:32:59 +0100
commit99f6f27b8aa87168fd04e70a1742f1bf20ccd73b (patch)
tree8222fe4a1976415e8b7c8091e142a78cec636261 /extensions/Persona/template/en/default
parent4d41e7bdbb17dcb4ecc66878d02e2838b90c2491 (diff)
downloadbugzilla-99f6f27b8aa87168fd04e70a1742f1bf20ccd73b.tar.gz
bugzilla-99f6f27b8aa87168fd04e70a1742f1bf20ccd73b.tar.xz
Bug 843989: work around persona "randomly" logging people out
Diffstat (limited to 'extensions/Persona/template/en/default')
-rw-r--r--extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl5
1 files changed, 5 insertions, 0 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 fce6aeac5..9a6eeb5bf 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
@@ -9,6 +9,11 @@
[% RETURN UNLESS Param('persona_includejs_url')
&& Param('user_info_class').split(',').contains('Persona') %]
+[%# for now don't inject persona javascript on authenticated users.
+ # we've seen sessions being logged out unexpectedly
+ # we should only inject this code for users who used persona to authenicate %]
+[% RETURN IF user.id %]
+
[% USE Bugzilla %]
[% cgi = Bugzilla.cgi %]