Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
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-openid-auth
Commits
465148b4
Commit
465148b4
authored
Jun 24, 2011
by
Michael Nelson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GREEN: first/last names cannot be longer than the db-set limit of 30chars.
parent
943eee73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
django_openid_auth/auth.py
+2
-2
django_openid_auth/tests/test_auth.py
+1
-1
No files found.
django_openid_auth/auth.py
View file @
465148b4
...
@@ -234,10 +234,10 @@ class OpenIDBackend:
...
@@ -234,10 +234,10 @@ class OpenIDBackend:
def
update_user_details
(
self
,
user
,
details
,
openid_response
):
def
update_user_details
(
self
,
user
,
details
,
openid_response
):
updated
=
False
updated
=
False
if
details
[
'first_name'
]:
if
details
[
'first_name'
]:
user
.
first_name
=
details
[
'first_name'
]
user
.
first_name
=
details
[
'first_name'
]
[:
30
]
updated
=
True
updated
=
True
if
details
[
'last_name'
]:
if
details
[
'last_name'
]:
user
.
last_name
=
details
[
'last_name'
]
user
.
last_name
=
details
[
'last_name'
]
[:
30
]
updated
=
True
updated
=
True
if
details
[
'email'
]:
if
details
[
'email'
]:
user
.
email
=
details
[
'email'
]
user
.
email
=
details
[
'email'
]
...
...
django_openid_auth/tests/test_auth.py
View file @
465148b4
...
@@ -132,7 +132,7 @@ class OpenIDBackendTests(TestCase):
...
@@ -132,7 +132,7 @@ class OpenIDBackendTests(TestCase):
self
.
backend
.
update_user_details
(
user
,
data
,
response
)
self
.
backend
.
update_user_details
(
user
,
data
,
response
)
self
.
assertEqual
(
"Some56789012345678901234567890"
,
user
.
first_name
)
self
.
assertEqual
(
"Some56789012345678901234567890"
,
user
.
first_name
)
self
.
assertEqual
(
"User56789012345678901234567890"
,
user
.
fir
st_name
)
self
.
assertEqual
(
"User56789012345678901234567890"
,
user
.
la
st_name
)
def
suite
():
def
suite
():
...
...
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