Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d8bfbe96
Commit
d8bfbe96
authored
4 years ago
by
Bianca Severino
Browse files
Options
Downloads
Patches
Plain Diff
Remove course_key from IDV SubmitPhotosView
parent
2711fbb3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/verify_student/views.py
+0
-13
0 additions, 13 deletions
lms/djangoapps/verify_student/views.py
with
0 additions
and
13 deletions
lms/djangoapps/verify_student/views.py
+
0
−
13
View file @
d8bfbe96
...
...
@@ -833,12 +833,8 @@ class SubmitPhotosView(View):
face_image (str): base64-encoded image data of the user
'
s face.
photo_id_image (str): base64-encoded image data of the user
'
s photo ID.
full_name (str): The user
'
s full name, if the user is requesting a name change as well.
course_key (str): Identifier for the course, if initiated from a checkpoint.
checkpoint (str): Location of the checkpoint in the course.
"""
log
.
info
((
u
"
User {user_id} is submitting photos for ID verification
"
).
format
(
user_id
=
request
.
user
.
id
))
# If the user already has an initial verification attempt, we can re-use the photo ID
# the user submitted with the initial attempt.
initial_verification
=
SoftwareSecurePhotoVerification
.
get_initial_verification
(
request
.
user
)
...
...
@@ -893,7 +889,6 @@ class SubmitPhotosView(View):
for
param_name
in
[
"
face_image
"
,
"
photo_id_image
"
,
"
course_key
"
,
"
full_name
"
]
if
param_name
in
request
.
POST
...
...
@@ -923,14 +918,6 @@ class SubmitPhotosView(View):
log
.
error
((
u
"
User {user_id} missing required parameter face_image
"
).
format
(
user_id
=
request
.
user
.
id
))
return
None
,
HttpResponseBadRequest
(
msg
)
# If provided, parse the course key and checkpoint location
if
"
course_key
"
in
params
:
try
:
params
[
"
course_key
"
]
=
CourseKey
.
from_string
(
params
[
"
course_key
"
])
except
InvalidKeyError
:
log
.
error
((
u
"
User {user_id} provided invalid course_key
"
).
format
(
user_id
=
request
.
user
.
id
))
return
None
,
HttpResponseBadRequest
(
_
(
"
Invalid course key
"
))
return
params
,
None
def
_update_full_name
(
self
,
request
,
full_name
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment