Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the old password field only if the user is logged in #27

Merged
merged 1 commit into from
Dec 9, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion templates/user/change_password
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


<table border="1" cellpadding="10" cellspacing="0"><tr><td> <table border="1" cellpadding="10" cellspacing="0"><tr><td>
<table border="0" cellpadding="0" cellspacing="10"> <table border="0" cellpadding="0" cellspacing="10">

[% IF (global.request.user) %]
<tr> <tr>
<td>{{Current password}}<br /> <td>{{Current password}}<br />
</tr> </tr>
Expand All @@ -24,6 +24,7 @@
<input type="password" name="oldpassword" value="" size="25" maxlength="60" /> <input type="password" name="oldpassword" value="" size="25" maxlength="60" />
</td> </td>
</tr> </tr>
[% END %]
<tr> <tr>
<td>{{New password}}<br /> <td>{{New password}}<br />
<font size="-1">{{Enter your new password twice}}</font> <font size="-1">{{Enter your new password twice}}</font>
Expand Down