Merge pull request #4338 from matiu/bug/ios-key-derivation-cache

fix key derivation cache in IOS
This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-09 17:56:21 -03:00 committed by GitHub
commit 4f5090aec9
3 changed files with 8 additions and 12 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('disclaimerController',
function($scope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go) {
function($scope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService) {
var self = this;
self.tries = 0;
self.creatingProfile = true;
@ -38,7 +38,7 @@ angular.module('copayApp.controllers').controller('disclaimerController',
$ionicSideMenuDelegate.canDragContent(false);
self.lang = uxLanguage.currentLanguage;
profileService.getProfile(function(err, profile) {
storageService.getProfile(function(err, profile) {
if (!profile) {
create(opts);
} else {