Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #138 from zalun/bug-737689-fix_browser_id_login
Browse files Browse the repository at this point in the history
leave hidden inputs in HTML
  • Loading branch information
zalun committed Mar 20, 2012
2 parents c4cf9c1 + a9b09eb commit dcea403
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/person/templates/registration/login.html
Expand Up @@ -65,9 +65,10 @@
</div>


{% if waffle.switch('show-old-login') %}
<form id="login_form" class="UI_Forms {% if not waffle.switch('browserid-login') %}show-login{% endif %}" method="post" action="{{ url('django.contrib.auth.views.login') }}" accept-charset="utf-8">
{{ safe_csrf_token()|safe }}
{{ safe_csrf_token()|safe }}
{% if waffle.switch('show-old-login') %}
<input type="hidden" name="next" value="{{ next }}" />
<fieldset>
<legend>Sign In</legend>

Expand All @@ -84,14 +85,12 @@
</fieldset>

<div class="UI_Form_Actions">
<input type="hidden" name="next" value="{{ next }}" />

<ul>
<li><input type="submit" name="save" value="Sign in" /></li>
</ul>
</div> <!-- /UI_Form_Actions -->
{% endif %}
</form> <!-- /UI_Forms -->
{% endif %}
<p class="really-seriously">*You must use the same email address you use to access addons.mozilla.org for both BrowserID and standard login.</p>
</div> <!-- /UI_Login -->
{% endblock %}

0 comments on commit dcea403

Please sign in to comment.