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
cd479caa
Commit
cd479caa
authored
Aug 30, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure users are logged in on the verified cert path
parent
b5feb074
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
common/djangoapps/course_modes/views.py
+1
-1
lms/djangoapps/verify_student/views.py
+4
-0
No files found.
common/djangoapps/course_modes/views.py
View file @
cd479caa
...
...
@@ -36,7 +36,7 @@ class ChooseModeView(View):
return
render_to_response
(
"course_modes/choose.html"
,
context
)
@method_decorator
(
login_required
)
def
post
(
self
,
request
,
course_id
):
user
=
request
.
user
...
...
lms/djangoapps/verify_student/views.py
View file @
cd479caa
...
...
@@ -13,6 +13,7 @@ from django.core.urlresolvers import reverse
from
django.http
import
HttpResponse
,
HttpResponseBadRequest
,
HttpResponseRedirect
from
django.shortcuts
import
redirect
from
django.views.generic.base
import
View
from
django.utils.decorators
import
method_decorator
from
django.utils.translation
import
ugettext
as
_
from
django.utils.http
import
urlencode
from
django.contrib.auth.decorators
import
login_required
...
...
@@ -30,6 +31,7 @@ log = logging.getLogger(__name__)
class
VerifyView
(
View
):
@method_decorator
(
login_required
)
def
get
(
self
,
request
,
course_id
):
"""
"""
...
...
@@ -73,6 +75,7 @@ class VerifiedView(View):
View that gets shown once the user has already gone through the
verification flow
"""
@method_decorator
(
login_required
)
def
get
(
self
,
request
,
course_id
):
"""
Handle the case where we have a get request
...
...
@@ -93,6 +96,7 @@ class VerifiedView(View):
return
render_to_response
(
'verify_student/verified.html'
,
context
)
@login_required
def
create_order
(
request
):
"""
Submit PhotoVerification and create a new Order for this verified cert
...
...
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