From 98503a61f92093a81a0c32615000ac0f9e9f6ccb Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 11 Aug 2015 20:52:46 +0000 Subject: Bug 1190029: Would like a way to see which groups are 'secure' groups in editusers.cgi when diagnosing password reset issues --- .../hook/admin/users/userdata-end.html.tmpl | 46 ++++++++++++++++++++++ template/en/default/admin/users/userdata.html.tmpl | 2 + 2 files changed, 48 insertions(+) create mode 100644 extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl diff --git a/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl b/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl new file mode 100644 index 000000000..37b3277c9 --- /dev/null +++ b/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl @@ -0,0 +1,46 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + + + Has Secure Mail Key/Cert: + + [% IF user.public_key %]Yes[% ELSE %]No[% END %] + + + + + Member of Secure Mail Group: + + [% securemail_member = 0 %] + [% FOREACH group = user.groups %] + [% IF group.secure_mail %] + [% securemail_member = 1 %] + [% LAST %] + [% END %] + [% END %] + [% IF securemail_member %]Yes[% ELSE %]No[% END %] + + + + diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl index 16d720a4a..63f69cfe9 100644 --- a/template/en/default/admin/users/userdata.html.tmpl +++ b/template/en/default/admin/users/userdata.html.tmpl @@ -110,3 +110,5 @@ [% END %] + +[% Hook.process('end') %] -- cgit v1.2.3-24-g4f1b