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
4a9a28c7
Commit
4a9a28c7
authored
May 17, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up indentation in ssl_auth
parent
56e8ecdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
djangoapps/ssl_auth/ssl_auth.py
+5
-5
No files found.
djangoapps/ssl_auth/ssl_auth.py
View file @
4a9a28c7
...
@@ -170,10 +170,10 @@ class SSLLoginBackend(ModelBackend):
...
@@ -170,10 +170,10 @@ class SSLLoginBackend(ModelBackend):
return
None
return
None
(
username
,
email
,
fullname
)
=
info
(
username
,
email
,
fullname
)
=
info
try
:
try
:
user
=
User
.
objects
.
get
(
username
=
username
)
# if user already exists don't create it
user
=
User
.
objects
.
get
(
username
=
username
)
# if user already exists don't create it
except
User
.
DoesNotExist
:
except
User
.
DoesNotExist
:
raise
"User does not exist. Not creating user; potential schema consistency issues"
raise
"User does not exist. Not creating user; potential schema consistency issues"
#raise ImproperlyConfigured("[SSLLoginBackend] creating %s" % repr(info))
#raise ImproperlyConfigured("[SSLLoginBackend] creating %s" % repr(info))
user
=
User
(
username
=
username
,
password
=
GenPasswd
())
# create new User
user
=
User
(
username
=
username
,
password
=
GenPasswd
())
# create new User
user
.
is_staff
=
False
user
.
is_staff
=
False
...
@@ -211,7 +211,7 @@ class SSLLoginBackend(ModelBackend):
...
@@ -211,7 +211,7 @@ class SSLLoginBackend(ModelBackend):
#tui.section = None # no section assigned at first
#tui.section = None # no section assigned at first
#tui.save()
#tui.save()
# return None
# return None
return
user
return
user
def
get_user
(
self
,
user_id
):
def
get_user
(
self
,
user_id
):
#if not os.environ.has_key('HTTPS'):
#if not os.environ.has_key('HTTPS'):
...
...
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