Merge pull request #312 from matiu/feature/ux11

Feature/ux11
This commit is contained in:
Manuel Aráoz 2014-05-07 12:22:36 -03:00
commit d58da529c6
3 changed files with 7 additions and 5 deletions

View File

@ -97,10 +97,12 @@ var config = {
host: 'test.insight.is',
port: 3001
},
verbose: 1,
passphrase: {
iterations: 1,
storageSalt: 'mjuBtGybi/4=',
},
themes: ['default'],
iterations: 1000,
storageSalt: 'mjuBtGybi/4=', // choose your own salt (base64)
verbose: 1,
};
var log = function() {

View File

@ -2,7 +2,7 @@
function Passphrase(config) {
config = config || {};
this.salt = config.storageSalt || 'mjuBtGybi/4=';
this.salt = config.salt || 'mjuBtGybi/4=';
this.iterations = config.iterations || 1000;
};

View File

@ -2,6 +2,6 @@
var passphrase;
angular.module('copay.passphrase').factory('Passphrase', function($rootScope) {
passphrase = passphrase || new copay.Passphrase(config);
passphrase = passphrase || new copay.Passphrase(config.passphrase);
return passphrase;
});