зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d33c4d1a80
Коммит
11fa7fcc76
|
@ -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 %]">
|
||||
|
|
Загрузка…
Ссылка в новой задаче