Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
0e8f5a9c
Unverified
Commit
0e8f5a9c
authored
5 years ago
by
irfanuddinahmad
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21233 from edx/iahmad/ENT-1954-Update-Logs-For-Enterprise-SSO-Workflows
ENT-1954 Third party auth logs update
parents
d5d10942
e723448a
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/third_party_auth/pipeline.py
+2
-2
2 additions, 2 deletions
common/djangoapps/third_party_auth/pipeline.py
with
2 additions
and
2 deletions
common/djangoapps/third_party_auth/pipeline.py
+
2
−
2
View file @
0e8f5a9c
...
...
@@ -796,7 +796,7 @@ def user_details_force_sync(auth_entry, strategy, details, user=None, *args, **k
email
.
send
()
except
SMTPException
:
logger
.
exception
(
'
[THIRD_PARTY_AUTH] Error sending IdP learner data sync-initiated email change
'
u
'
notification email. Username {username}
'
.
format
(
username
=
user
.
username
))
u
'
notification email. Username
:
{username}
'
.
format
(
username
=
user
.
username
))
def
set_id_verification_status
(
auth_entry
,
strategy
,
details
,
user
=
None
,
*
args
,
**
kwargs
):
...
...
@@ -878,7 +878,7 @@ def get_username(strategy, details, backend, user=None, *args, **kwargs):
while
not
final_username
or
user_exists
({
'
username
'
:
final_username
}):
username
=
short_username
+
uuid4
().
hex
[:
uuid_length
]
final_username
=
slug_func
(
clean_func
(
username
[:
max_length
]))
logger
.
info
(
u
'
[THIRD_PARTY_AUTH] New username generated. Username {username}
'
.
format
(
logger
.
info
(
u
'
[THIRD_PARTY_AUTH] New username generated. Username
:
{username}
'
.
format
(
username
=
final_username
))
else
:
final_username
=
storage
.
user
.
get_username
(
user
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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