Updates bitauth pairing. Updates package.json

This commit is contained in:
Gustavo Maximiliano Cortez 2016-10-12 15:32:05 -03:00
commit 9b32e50bb0
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 6 additions and 7 deletions

View file

@ -51,8 +51,8 @@
"bitcore-wallet-client": "4.3.1", "bitcore-wallet-client": "4.3.1",
"bower": "^1.7.9", "bower": "^1.7.9",
"chai": "^3.5.0", "chai": "^3.5.0",
"cordova": "5.4.1",
"cordova-android": "5.1.1", "cordova-android": "5.1.1",
"cordova-custom-config": "^3.0.5",
"cordova-plugin-qrscanner": "^2.3.1", "cordova-plugin-qrscanner": "^2.3.1",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"express": "^4.11.2", "express": "^4.11.2",
@ -112,12 +112,10 @@
"clean-all": "git clean -dfx && npm install" "clean-all": "git clean -dfx && npm install"
}, },
"devDependencies": { "devDependencies": {
"androidmanifest": "^2.0.0", "cordova": "^6.3.1",
"cordova": "^5.4.1", "grunt": "^1.0.1",
"globby": "^6.0.0",
"ionic": "^2.1.0", "ionic": "^2.1.0",
"plist": "^2.0.1",
"trash-cli": "^1.4.0", "trash-cli": "^1.4.0",
"xcode": "^0.8.2" "lodash": "^4.3.0"
} }
} }

View file

@ -129,9 +129,10 @@ angular.module('copayApp.services').factory('bitpayCardService', function($http,
deviceName = device.model; deviceName = device.model;
} }
var json = { var json = {
method: 'registerSinWithSecret', method: 'createToken',
params: { params: {
secret: obj.secret, secret: obj.secret,
version: 2,
deviceName: deviceName, deviceName: deviceName,
code: obj.otp code: obj.otp
} }