Commit 6ea028e0 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 378f60e2
...@@ -13,21 +13,25 @@ ...@@ -13,21 +13,25 @@
#%] #%]
<table> <table>
<tr> [% IF user.authorizer.can_change_password
<td colspan="3"> || (user.authorizer.can_change_email && Param('allowemailchange')) %]
Please enter your existing password to confirm account changes. <tr>
</td> <td colspan="3">
</tr> Please enter your existing password to confirm account changes.
<tr> </td>
<th align="right">Password:</th> </tr>
<td> <tr>
<input type="hidden" name="old_login" value="[% user.login FILTER html %]"> <th align="right">Password:</th>
<input type="password" name="old_password"> <td>
</td> <input type="hidden" name="old_login" value="[% user.login FILTER html %]">
</tr> <input type="password" name="old_password">
<tr> </td>
<td colspan="2"><hr></td> </tr>
</tr> <tr>
<td colspan="2"><hr></td>
</tr>
[% END %]
[% IF user.authorizer.can_change_password %] [% IF user.authorizer.can_change_password %]
<tr> <tr>
<th align="right">New password:</th> <th align="right">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