Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function() {
'use strict';
var _supportedAccounts = [
{ provider: "dribble", className: "fa-dribbble", displayName: "Dribble", disabled: true, order: 6, colorClass: 'el-dribble'},
{ provider: "dribbble", className: "fa-dribbble", displayName: "Dribbble", disabled: false, order: 6, colorClass: 'el-dribble'},
{ provider: "linkedin", className: "fa-linkedin", displayName: "LinkedIn", disabled: true, order: 5, colorClass: 'el-linkedin'},
{ provider: "stackoverflow", className: "fa-stack-overflow", displayName: "Stack Overflow", disabled: false, order: 3, colorClass: 'el-stackoverflow'},
{ provider: "behance", className: "fa-behance", displayName: "Behance", disabled: true, order: 2, colorClass: 'el-behance'},
Expand Down
2 changes: 1 addition & 1 deletion app/services/externalAccounts.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
function linkExternalAccount(provider, callbackUrl) {
return $q(function(resolve, reject) {
// supported backends
var backends = ['facebook', 'google-oauth2', 'bitbucket', 'github', 'linkedin', 'stackoverflow'];
var backends = ['facebook', 'google-oauth2', 'bitbucket', 'github', 'linkedin', 'stackoverflow', 'dribbble'];
if (backends.indexOf(provider) > -1) {
auth0.signin({
popup: true,
Expand Down
13 changes: 11 additions & 2 deletions app/services/helpers.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,18 @@
handle = socialUserId;
email = profile.email;
socialProviderId = 6;
} else if (socialProvider === 'dribbble') {
firstName = profile.first_name;
lastName = profile.last_name;
handle = socialUserId;
email = profile.email;
socialProviderId = 7;
}

var token = accessToken;
if (profile.identities && profile.identities.length > 0) {
token = profile.identities[0].access_token;
}
return {
socialUserId: socialUserId,
username: handle,
Expand All @@ -89,8 +99,7 @@
email: email,
socialProfile: profile,
socialProvider: socialProvider,
// TODO should this be refresh token or accessToken?
accessToken: accessToken
accessToken: token
}
}

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy