diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-02-27 16:17:34 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-02-27 16:18:03 +0100 |
commit | 110b14a3f96e5ec0511a232022484f7afb691535 (patch) | |
tree | 93c0245d010d35adcd8eaa9c5a8a8ce51e3ee016 /template/en/default/account/prefs/apikey.html.tmpl | |
parent | 5eea1e0851fedc5708e69daabc9fd085881b9a6a (diff) | |
download | bugzilla-110b14a3f96e5ec0511a232022484f7afb691535.tar.gz bugzilla-110b14a3f96e5ec0511a232022484f7afb691535.tar.xz |
Bug 1223421 - Hide/Obfuscate MozReview API Keys
Diffstat (limited to 'template/en/default/account/prefs/apikey.html.tmpl')
-rw-r--r-- | template/en/default/account/prefs/apikey.html.tmpl | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/template/en/default/account/prefs/apikey.html.tmpl b/template/en/default/account/prefs/apikey.html.tmpl index 926f3838b..cdbee848b 100644 --- a/template/en/default/account/prefs/apikey.html.tmpl +++ b/template/en/default/account/prefs/apikey.html.tmpl @@ -34,13 +34,25 @@ here.</p> <th>Revoked</th> </tr> + [%# because mozreview api-keys only work for the mozreview api, we hide the + # key and prevent renaming #%] [% FOREACH api_key IN api_keys %] <tr[% IF api_key.revoked %] class="apikey_revoked bz_tui_hidden" style="display:none"[% END %]> - <td>[% api_key.api_key FILTER html %]</td> <td> - <input name="description_[% api_key.id FILTER html %]" - id="description_[% api_key.id FILTER html %]" - value="[% api_key.description FILTER html %]"> + [% IF api_key.is_mozreview %] + <i>hidden</i> + [% ELSE %] + [% api_key.api_key FILTER html %] + [% END %] + </td> + <td> + [% IF api_key.is_mozreview %] + MozReview + [% ELSE %] + <input name="description_[% api_key.id FILTER html %]" + id="description_[% api_key.id FILTER html %]" + value="[% api_key.description FILTER html %]"> + [% END %] </td> [% IF api_key.last_used %] <td>[% api_key.last_used FILTER time %] |