Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

leave hidden inputs in HTML #138

Merged
merged 2 commits into from

2 participants

@zalun
Owner

No description provided.

@seanmonstar
Owner

r+

@zalun zalun merged commit dcea403 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 20, 2012
  1. @zalun

    leave hidden inputs in HTML

    zalun authored
  2. @zalun
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 5 deletions.
  1. +4 −5 apps/person/templates/registration/login.html
View
9 apps/person/templates/registration/login.html
@@ -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>
@@ -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 %}
Something went wrong with that request. Please try again.