Commit 7a42dfd9 authored by christophe siraut's avatar christophe siraut

ajout d'une protection Cross Site Request Forgery

parent 5d432a26
......@@ -15,7 +15,7 @@
<ul>
<li>Provide username and password:
<form action="" method="post">
<form action="" method="post">{% csrf_token %}
<label for="username"></label>
<input type="text" name="username" value="" id="username">
<label for="password"></label>
......
......@@ -42,6 +42,7 @@ urlpatterns = patterns('',
(r'^user/login/$', login),
(r'^user/logout/$', logout, {'template_name': 'index.html'}),
(r'^user/register', 'nuage.sondage.userviews.register'),
(r'^user/success$', 'django.views.generic.simple.direct_to_template', {'template': 'registration/success.html'}),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment