This commit is contained in:
Matias Alejo Garcia 2015-10-29 12:09:04 -03:00
parent 3559cb776f
commit 3c8a9b75c1
1 changed files with 2 additions and 0 deletions

View File

@ -48,12 +48,14 @@ angular.module('copayApp.services')
$log.debug('Profile is encrypted');
getUUID(function(uuid) {
$log.debug('Device UUID:' + uuid);
if (!uuid)
return cb('Could not decrypt storage: could not get device ID');
try {
text = sjcl.decrypt(uuid, text);
} catch(e) {
$log.warn('Decrypt error: ', e);
return cb('Could not decrypt storage: device ID mismatch');
};
return cb(null, text);