Joseph Turian avatar Joseph Turian committed 5660a76

Added CSRF tokens to all templates

Comments (0)

Files changed (12)

email_login/templates/email_login/generate_html.sh

+hamlpy logged_out.haml > logged_out.html
+hamlpy login_form.haml > login_form.html
+hamlpy login.haml > login.html
+hamlpy password_change_done.haml > password_change_done.html
+hamlpy password_change_form.haml > password_change_form.html
+hamlpy password_reset_complete.haml > password_reset_complete.html
+hamlpy password_reset_confirm.haml > password_reset_confirm.html
+hamlpy password_reset_done.haml > password_reset_done.html
+hamlpy password_reset_form.haml > password_reset_form.html
+hamlpy registration_form.haml > registration_form.html
+hamlpy signup_complete.haml > signup_complete.html
+hamlpy signup_form.haml > signup_form.html

email_login/templates/email_login/login.haml

   - if form.errors
     %p Authentication error
   %form{:action => "{% url django.contrib.auth.views.login %}", :method => "post"}
+    - csrf_token
     - for field in form
       %p
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/login.html

     <p>Authentication error</p>
   {% endif %}
   <form action='{% url django.contrib.auth.views.login %}' method='post'>
+    {% csrf_token %}
     {% for field in form %}
       <p>
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/password_change_form.haml

   
 - block content
   %form{:action => "", :method => "post"}
+    - csrf_token
     - for field in form
       %p
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/password_change_form.html

 {% endblock %}
 {% block content %}
   <form action='' method='post'>
+    {% csrf_token %}
     {% for field in form %}
       <p>
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/password_reset_confirm.haml

 - block content
   - if validlink
     %form{:action => "", :method => "post"}
+      - csrf_token
       - for field in form
         %p
           {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/password_reset_confirm.html

 {% block content %}
   {% if validlink %}
     <form action='' method='post'>
+      {% csrf_token %}
       {% for field in form %}
         <p>
           {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/password_reset_form.haml

   
 - block content
   %form{:action => "", :method => "post"}
+    - csrf_token
     - for field in form
       %p
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/password_reset_form.html

 {% endblock %}
 {% block content %}
   <form action='' method='post'>
+    {% csrf_token %}
     {% for field in form %}
       <p>
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/registration_form.haml

       %strong {{ registration_error_message }}
 
   %form#registration-form{:action => "{{ app_path }}", :method => "post"}
-    {% csrf_token %}
+    - csrf_token
     %p
       Email address:
       %input{:type => "text", :name => "email"}/

email_login/templates/email_login/signup_form.haml

   
 - block content
   %form{:action => "", :method => "post"}
+    - csrf_token
     - for field in form
       %p
         {{ field.label_tag }}: {{ field }}

email_login/templates/email_login/signup_form.html

 {% endblock %}
 {% block content %}
   <form action='' method='post'>
+    {% csrf_token %}
     {% for field in form %}
       <p>
         {{ field.label_tag }}: {{ field }}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.