]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/auth/complete.html
Merge branch 'threadsafe_requestholder' into update_django
[osqa.git] / forum / skins / default / templates / auth / complete.html
index 5b293ebe41b75c30ac7d1f265c9ee89bf030a21a..efaf531fed840f0c340020d7f7079f32ff09784e 100644 (file)
@@ -34,6 +34,7 @@
 
        <div class="login">
         <form name="fregister" action="" method="POST">
+            {% csrf_token %}
             {{ form1.next }}
             <div class="form-row-vertical margin-bottom">
                 <label for="id_username">{{ form1.username.label }}</label>
                 {% endif %}
                 {{ form1.email }}
             </div>
+            <div class="form-row-vertical margin-bottom">
+                <label for="id_real_name">{{ form1.real_name.label }}</label>
+                {% if form1.real_name.errors %}
+                    <p class="error">{{ form1.real_name.errors|join:", " }}</p>
+                {% endif %}
+                {{ form1.real_name }}
+            </div>
             {% if form1.password1 %}
                 <div class="form-row-vertical margin-bottom">
                     <label for="password1_id">{{ form1.password1.label }}</label>
@@ -80,7 +88,8 @@
     {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
     {% if form2 %}
        <div class="login" style="display:none">
-        <form name="fverify" action="{% url user_register %}" method="POST">
+        <form name="fverify" action="{% url "user_register" %}" method="POST">
+            {% csrf_token %}
             {{ form2.next }}
                        <fieldset style="padding:10px">
                                <legend class="big">{% trans "Existing account" %}</legend>
@@ -90,7 +99,7 @@
                                <!--todo double check translation from chinese 确认 = "Register" -->
                                <div class="submit-row">
                                        <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
-                                       <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
+                                       <a href="{% url "user_sendpw" %}">{% trans "Forgot your password?" %}</a>
                                </div>
                        </fieldset>
                </form>