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
0f324baa
Commit
0f324baa
authored
Oct 07, 2013
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed PEP8 and indentation issues
parent
5d066db1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
common/djangoapps/external_auth/views.py
+6
-7
No files found.
common/djangoapps/external_auth/views.py
View file @
0f324baa
...
@@ -250,15 +250,14 @@ def _signup(request, eamap):
...
@@ -250,15 +250,14 @@ def _signup(request, eamap):
# save this for use by student.views.create_account
# save this for use by student.views.create_account
request
.
session
[
'ExternalAuthMap'
]
=
eamap
request
.
session
[
'ExternalAuthMap'
]
=
eamap
if
settings
.
MITX_FEATURES
.
get
(
'AUTH_USE_MIT_CERTIFICATES_IMMEDIATE_SIGNUP'
,
''
):
if
settings
.
MITX_FEATURES
.
get
(
'AUTH_USE_MIT_CERTIFICATES_IMMEDIATE_SIGNUP'
,
''
):
# do signin immediately, by calling create_account, instead of asking
# do signin immediately, by calling create_account, instead of asking
# student to fill in form. MIT students already have information filed.
# student to fill in form. MIT students already have information filed.
username
=
eamap
.
external_email
.
split
(
'@'
,
1
)[
0
]
username
=
eamap
.
external_email
.
split
(
'@'
,
1
)[
0
]
username
=
username
.
replace
(
'.'
,
'_'
)
username
=
username
.
replace
(
'.'
,
'_'
)
post_vars
=
dict
(
username
=
username
,
post_vars
=
dict
(
username
=
username
,
honor_code
=
u'true'
,
honor_code
=
u'true'
,
terms_of_service
=
u'true'
,
terms_of_service
=
u'true'
)
)
log
.
info
(
'doing immediate signup for
%
s, params=
%
s'
%
(
username
,
post_vars
))
log
.
info
(
'doing immediate signup for
%
s, params=
%
s'
%
(
username
,
post_vars
))
student
.
views
.
create_account
(
request
,
post_vars
)
student
.
views
.
create_account
(
request
,
post_vars
)
return
redirect
(
'/'
)
return
redirect
(
'/'
)
...
...
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