Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a2f86074
Commit
a2f86074
authored
Oct 10, 2014
by
Greg Price
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make password reset endpoint CSRF exempt
This is necessary for mobile apps
parent
e2fbc09d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
common/djangoapps/student/views.py
+2
-1
No files found.
common/djangoapps/student/views.py
View file @
a2f86074
...
...
@@ -29,6 +29,7 @@ from django_future.csrf import ensure_csrf_cookie
from
django.utils.http
import
cookie_date
,
base36_to_int
from
django.utils.translation
import
ugettext
as
_
,
get_language
from
django.views.decorators.cache
import
never_cache
from
django.views.decorators.csrf
import
csrf_exempt
from
django.views.decorators.http
import
require_POST
,
require_GET
from
django.db.models.signals
import
post_save
...
...
@@ -1829,7 +1830,7 @@ def activate_account(request, key):
return
HttpResponse
(
_
(
"Unknown error. Please e-mail us to let us know how it happened."
))
@
ensure_csrf_cookie
@
csrf_exempt
def
password_reset
(
request
):
""" Attempts to send a password reset e-mail. """
if
request
.
method
!=
"POST"
:
...
...
Write
Preview
Markdown
is supported
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