Skip to content

Commit

Permalink
Merge pull request cablelabs#175 from cablelabs/issue-170
Browse files Browse the repository at this point in the history
Issue 170
  • Loading branch information
Nick Baroni authored Oct 26, 2018
2 parents f365fa1 + b9dcf04 commit deff6e2
Show file tree
Hide file tree
Showing 4 changed files with 768 additions and 1,173 deletions.
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"passport": "^0.2.2",
"passport-local": "^1.0.0",
"pug": "^2.0.3",
"ramda": "^0.25.0",
"request": "^2.85.0",
"request-promise": "^4.2.2",
"serve-favicon": "^2.5.0",
"session-file-store": "^0.2.1",
"sqlite3": "^4.0.2",
Expand Down
5 changes: 1 addition & 4 deletions rest/models/INetwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ async function authorizeAndTest (network, modelAPI, k, me, dataAPI) {
try {
const connection = await modelAPI.networkTypeAPI.connect(network, network.securityData)
if (connection instanceof Object) {
// Object.assign(network.securityData, connection)
for (var prop in connection) {
network.securityData[prop] = connection[prop]
}
Object.assign(network.securityData, connection)
} else {
network.securityData.access_token = connection
}
Expand Down
Loading

0 comments on commit deff6e2

Please sign in to comment.