When getting ones password sent without getting a login failed message first, the pending command is the request to send a new password... so you get sent back to that once your password is sent. That's not good. This fixes it by moving the pendingCommands code to the login.failed page and making the login.detailsSent page only show the continue button when appropriate.

This commit is contained in:
ian%hixie.ch 2002-05-06 05:17:00 +00:00
Родитель d33c4d1a80
Коммит 11fa7fcc76
3 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -5,6 +5,7 @@ TemplateToolkit
<p>Your password has been sent.</p>
[% IF pendingCommands.defined %]
<form action="" method="GET"> <!-- XXX POST -->
<p>
<input type="submit" value="Continue...">
@ -13,5 +14,8 @@ TemplateToolkit
[%- END -%] [%- END %]
</p>
</form>
[% ELSE %]
<p><a href="?">Return to index.</a></p>
[% END %]
[% INCLUDE template.html.footer %]

Просмотреть файл

@ -17,6 +17,7 @@ TemplateToolkit
<p>
[%- INCLUDE template.html.login.form buttonLabel = 'Get Password' %]
<input type="hidden" name="loginPendingCommands" value="[% pendingCommands | html %]">
</p>
</form>

Просмотреть файл

@ -8,5 +8,4 @@ TemplateToolkit
[%- END %]
</select>
<input type="text" name="address" value="">
<input type="hidden" name="loginPendingCommands" value="[% pendingCommands | html %]">
<input type="submit" value="[% buttonLabel | html %]">