Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-cas
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
OpenEdx
django-cas
Commits
60a5b8e5
Commit
60a5b8e5
authored
Aug 29, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update User creation - don't use get_or_create without email
parent
9a891b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
django_cas/backends.py
+4
-2
No files found.
django_cas/backends.py
View file @
60a5b8e5
...
...
@@ -131,8 +131,10 @@ class CASBackend(object):
if
not
username
:
return
None
user
,
created
=
User
.
objects
.
get_or_create
(
username
=
username
)
if
created
:
try
:
user
=
User
.
objects
.
get
(
username
=
username
)
except
User
.
DoesNotExist
:
user
=
User
(
username
=
username
,
email
=
username
)
user
.
set_unusable_password
()
if
authentication_response
and
_CAS_USER_DETAILS_RESOLVER
:
...
...
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