Permalink
Browse files

Merge pull request #27 from dotandimet/patch-1

Show the old password field only if the user is logged in
  • Loading branch information...
maddingue committed Dec 9, 2012
2 parents 3ae98c7 + 2b1d62b commit 8c877bcbaf162010290182d6091307e3250b4c8f
Showing with 2 additions and 1 deletion.
  1. +2 −1 templates/user/change_password
@@ -15,7 +15,7 @@
<table border="1" cellpadding="10" cellspacing="0"><tr><td>
<table border="0" cellpadding="0" cellspacing="10">
-
+[% IF (global.request.user) %]
<tr>
<td>{{Current password}}<br />
</tr>
@@ -24,6 +24,7 @@
<input type="password" name="oldpassword" value="" size="25" maxlength="60" />
</td>
</tr>
+[% END %]
<tr>
<td>{{New password}}<br />
<font size="-1">{{Enter your new password twice}}</font>

0 comments on commit 8c877bc

Please sign in to comment.