Skip to content

Commit

Permalink
Remove check that Admin password different from user password. Closes…
Browse files Browse the repository at this point in the history
… #8852

This bug was caused by the fact that we are reusing the password form from the User Accounts page, where the
'old_password' field is their old password. When Admin uses the same form for changing user's password
the 'old_password' field is used for the Admin's password. This is OK if this is the same as the user's new password
  • Loading branch information
Will Moore committed May 17, 2012
1 parent fdc54e0 commit 8e3e13f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@
$("div.error", $pw_form).text("New passwords don't match.");
return false;
}
if (new_pw == old_pw) {
$("div.error", $pw_form).text("New password is the same as Old password");
return false;
}
if ($.trim(new_pw).length<3 || $.trim(conf_pw).length<3 || $.trim(old_pw).length==0) {
$("div.error", $pw_form).text("Passwords should be at least 3 characters long.");
return false;
Expand Down Expand Up @@ -273,7 +269,7 @@ <h1><a href="{% url waexperimenters %}" style="position:relative; top:-38px; flo
<table>
<tbody>
<tr>
<td class="form"><label for"id_old_password">Admin Password</label></td>
<td class="form"><label for="id_old_password">Admin Password</label></td>
<td class="input">{{ password_form.old_password }}</td>
</tr>
<tr>
Expand Down

0 comments on commit 8e3e13f

Please sign in to comment.