Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
etch
nuages
Commits
7a42dfd9
Commit
7a42dfd9
authored
Jun 13, 2010
by
christophe siraut
Browse files
ajout d'une protection Cross Site Request Forgery
parent
5d432a26
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/registration/login.html
View file @
7a42dfd9
...
...
@@ -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>
...
...
urls.py
View file @
7a42dfd9
...
...
@@ -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'
}),
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment