add test for priv key import

This commit is contained in:
Matias Alejo Garcia 2014-08-20 20:29:07 -04:00
parent ca23aed70f
commit 4b3cbfcfb0
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
angular.module('copayApp.controllers').controller('BackupController',
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {
var s = ($location.search()).showPrivate;
var s = ($location.search()).advanced;
if (s) {
var w = $rootScope.wallet;
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;

View File

@ -15,7 +15,7 @@ angular.module('copayApp.controllers').controller('JoinController',
var context;
var localMediaStream;
var s = ($location.search()).enterPrivate;
var s = ($location.search()).advanced;
if (s) {
$scope.enterPrivate = true;
}

View File

@ -224,7 +224,7 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
networkName: this.networkName,
};
if (privateHex && privateHex.length>10) {
if (privateHex && privateHex.length>1) {
privOpts.extendedPrivateKeyString = privateHex;
}

View File

@ -69,9 +69,9 @@
match="joinPassword" required>
<input type="text"
placeholder="Private"
placeholder="Private Key (Hex)"
name="private"
ng-model="private"
ng-model="$parent.private"
ng-if="enterPrivate">
<div class="text-right">