fixes credentials storage
This commit is contained in:
parent
b4feae31e4
commit
7111bdf7f2
4 changed files with 17 additions and 10 deletions
|
|
@ -669,7 +669,7 @@ angular.module('copayApp.services')
|
|||
|
||||
root.setDisclaimerAccepted = function(cb) {
|
||||
root.profile.disclaimerAccepted = true;
|
||||
storageService.storeProfileThrottled(root.profile, function(err) {
|
||||
storageService.storeProfile(root.profile, function(err) {
|
||||
return cb(err);
|
||||
});
|
||||
};
|
||||
|
|
@ -691,8 +691,8 @@ angular.module('copayApp.services')
|
|||
};
|
||||
|
||||
root.updateCredentials = function(credentials, cb) {
|
||||
root.profile.updateWallet(credentials);
|
||||
storageService.storeProfileThrottled(root.profile, cb);
|
||||
var t = root.profile.updateWallet(credentials);
|
||||
storageService.storeProfile(root.profile, cb);
|
||||
};
|
||||
|
||||
root.getClients = function() {
|
||||
|
|
|
|||
|
|
@ -99,8 +99,6 @@ angular.module('copayApp.services')
|
|||
storage.set('profile', profile.toObj(), cb);
|
||||
};
|
||||
|
||||
root.storeProfileThrottled = lodash.throttle(root.storeProfile, 5000);
|
||||
|
||||
root.getProfile = function(cb) {
|
||||
storage.get('profile', function(err, str) {
|
||||
if (err || !str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue