Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openid_connect
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
7
Merge Requests
7
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
openid_connect
Commits
d5486122
Commit
d5486122
authored
Jun 28, 2020
by
jcnventura
Committed by
Joao Ventura
Jun 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3117414
by pjotr.savitski, jcnventura: hook_user_format_name_alter has incorrect code
parent
3de09230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openid_connect.module
openid_connect.module
+1
-1
No files found.
openid_connect.module
View file @
d5486122
...
...
@@ -94,7 +94,7 @@ function openid_connect_user_format_name_alter(&$name, $account) {
// Ensure that usernames are not displayed if they are email addresses, or if
// they are generated names starting with 'oidc_'.
$oidc_name
=
\
Drupal
::
service
(
'user.data'
)
->
get
(
'openid_connect'
,
$account
->
id
(),
'oidc_name'
);
if
(
!
empty
(
$oidc_name
)
&&
(
strpos
(
$name
,
'oidc_'
)
===
0
||
strpos
(
$name
,
'@'
)
))
{
if
(
!
empty
(
$oidc_name
)
&&
(
strpos
(
$name
,
'oidc_'
)
!==
0
)
&&
(
strpos
(
$name
,
'@'
)
!==
FALSE
))
{
$name
=
$oidc_name
;
}
}
...
...
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