Merge pull request #3364 from matiu/kkkkk

add logs for device ID
This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-29 12:11:59 -03:00
commit 3913d145e3
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);