-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4003 from areeshatariq/areesha-reset-password
Reset Password Templatization
- Loading branch information
Showing
2 changed files
with
97 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[% IF action == 'display' %] | ||
[% lang("reset_password_${type}_msg") %] | ||
[% IF error_count >= 0 %] | ||
<div data-alert class="alert-box alert"> | ||
<p><strong>[% lang("correct_the_following_errors") %]</strong></p> | ||
<ul> | ||
[% FOREACH error IN errors %] | ||
<li class="error">[% error %]</li> | ||
[% END %] | ||
</ul> | ||
</div> | ||
[% END %] | ||
<form method="post" action="/cgi/reset_password.pl" enctype="multipart/form-data"> | ||
[% IF type == 'send_email' %] | ||
<label> | ||
[% lang('userid_or_email') %] | ||
<input type="text" name="userid_or_email"/> | ||
</label> | ||
[% ELSIF type == 'reset' %] | ||
<table role="presentation"> | ||
<tr> | ||
<td>[% lang('password') %]</td> | ||
<td><input type='password' name='password'/></td> | ||
</tr> | ||
<tr> | ||
<td>[% lang('password_confirm') %]</td> | ||
<td><input type='password' name='confirm_password'/></td> | ||
</tr> | ||
</table> | ||
<input type='hidden' name='resetid' value=param('resetid') /> | ||
<input type='hidden' name='token' value=param('token') /> | ||
[% END %] | ||
<input type='hidden' name='action' value='process' /> | ||
<input type='hidden' name='type' value=[% type %] /> | ||
<input type='submit' name='.submit' class='button' /> | ||
</form> | ||
[% ELSIF action == 'process' %] | ||
[% IF type == 'send_email' %] | ||
[% IF i > 0 %] | ||
[% lang('reset_password_send_email') %] | ||
[% END %] | ||
[% ELSIF type == 'reset' %] | ||
[% IF user_token == 'defined' %] | ||
[% lang('reset_password_reset') %] | ||
[% END %] | ||
[% END %] | ||
[% END %] |