summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Steinmetz <rsjtdrjgfuzkfg@abwesend.de>2013-09-25 19:47:55 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-09-25 19:47:55 +0200
commit58c09a1646d839d5aa61c0de844a0ccae89c3cf4 (patch)
tree5f545b252db16f3e76b129b44f1b04b181cdb0ee
parent21c92686705e558b3105cf3b8d9ac9ad8e46e4f6 (diff)
downloadbugzilla-58c09a1646d839d5aa61c0de844a0ccae89c3cf4.tar.gz
bugzilla-58c09a1646d839d5aa61c0de844a0ccae89c3cf4.tar.xz
Bug 455301: Don't show password box on userprefs.cgi if your auth method didn't use DB passwords
r=LpSolit a=justdave
-rw-r--r--template/en/default/account/prefs/account.html.tmpl34
1 files changed, 19 insertions, 15 deletions
diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl
index a00b5df97..b6c1ce1f8 100644
--- a/template/en/default/account/prefs/account.html.tmpl
+++ b/template/en/default/account/prefs/account.html.tmpl
@@ -13,21 +13,25 @@
#%]
<table>
- <tr>
- <td colspan="3">
- Please enter your existing password to confirm account changes.
- </td>
- </tr>
- <tr>
- <th>Password:</th>
- <td>
- <input type="hidden" name="old_login" value="[% user.login FILTER html %]">
- <input type="password" name="old_password">
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr></td>
- </tr>
+ [% IF user.authorizer.can_change_password
+ || (user.authorizer.can_change_email && Param('allowemailchange')) %]
+ <tr>
+ <td colspan="3">
+ Please enter your existing password to confirm account changes.
+ </td>
+ </tr>
+ <tr>
+ <th>Password:</th>
+ <td>
+ <input type="hidden" name="old_login" value="[% user.login FILTER html %]">
+ <input type="password" name="old_password">
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><hr></td>
+ </tr>
+ [% END %]
+
[% IF user.authorizer.can_change_password %]
<tr>
<th>New password:</th>