Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
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
RocketChat
Rocket.Chat
Commits
916d0dc8
Unverified
Commit
916d0dc8
authored
8 years ago
by
Gabriel Engel
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into develop
parents
cec21cc2
bf9a9ad0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-custom-oauth/custom_oauth_server.coffee
+8
-4
8 additions, 4 deletions
packages/rocketchat-custom-oauth/custom_oauth_server.coffee
with
8 additions
and
4 deletions
packages/rocketchat-custom-oauth/custom_oauth_server.coffee
+
8
−
4
View file @
916d0dc8
...
...
@@ -122,16 +122,20 @@ class CustomOAuth
if
identity
?
.
CharacterID
and
not
identity
.
id
identity
.
id
=
identity
.
CharacterID
# Fix Dataporten having 'user.userid' instead of 'id'
if
identity
?
.
user
?
.
userid
and
not
identity
.
id
identity
.
id
=
identity
.
user
.
userid
identity
.
email
=
identity
.
user
.
email
# Fix general 'phid' instead of 'id' from phabricator
if
identity
?
.
phid
and
not
identity
.
id
identity
.
id
=
identity
.
phid
# Fix general 'userid' instead of 'id' from provider
if
identity
?
.
userid
and
not
identity
.
id
identity
.
id
=
identity
.
userid
# console.log 'id:', JSON.stringify identity, null, ' '
serviceData
=
...
...
@@ -144,7 +148,7 @@ class CustomOAuth
serviceData
:
serviceData
options
:
profile
:
name
:
identity
.
name
or
identity
.
username
or
identity
.
nickname
or
identity
.
CharacterName
or
identity
.
user
?
.
name
name
:
identity
.
name
or
identity
.
username
or
identity
.
nickname
or
identity
.
CharacterName
or
identity
.
userName
or
identity
.
user
?
.
name
# console.log data
...
...
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