Commit 58c09a16 authored by Dirk Steinmetz's avatar Dirk Steinmetz Committed by Frédéric Buclin

Bug 455301: Don't show password box on userprefs.cgi if your auth method didn't use DB passwords

r=LpSolit a=justdave
parent 21c92686
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment