diff --git a/js/models/core/Passphrase.js b/js/models/core/Passphrase.js index 12a9edf17..e8a0bbd3e 100644 --- a/js/models/core/Passphrase.js +++ b/js/models/core/Passphrase.js @@ -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; }; diff --git a/js/services/passphrase.js b/js/services/passphrase.js index 2ea188869..12043a3be 100644 --- a/js/services/passphrase.js +++ b/js/services/passphrase.js @@ -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; });