mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
resolve lint errors
This commit is contained in:
parent
715b91ab96
commit
dde20f4451
@ -13,8 +13,8 @@
|
||||
});
|
||||
|
||||
apiService.organizationUsers.get({ orgId: $state.params.orgId, id: id }, function (user) {
|
||||
if (user && user.Subvaults) {
|
||||
var subvaults = {};
|
||||
if (user && user.Subvaults) {
|
||||
for (var i = 0; i < user.Subvaults.Data.length; i++) {
|
||||
subvaults[user.Subvaults.Data[i].SubvaultId] = {
|
||||
subvaultId: user.Subvaults.Data[i].SubvaultId,
|
||||
|
@ -87,16 +87,16 @@ angular
|
||||
profile.Organizations = [];
|
||||
}
|
||||
|
||||
var org = {
|
||||
var o = {
|
||||
id: org.Id,
|
||||
name: org.Name,
|
||||
key: org.Key,
|
||||
status: org.Status
|
||||
};
|
||||
profile.organizations.push(org);
|
||||
profile.organizations.push(o);
|
||||
|
||||
_userProfile = profile;
|
||||
cryptoService.addOrgKey(org);
|
||||
cryptoService.addOrgKey(o);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -133,7 +133,7 @@ angular
|
||||
}
|
||||
|
||||
return property;
|
||||
}
|
||||
};
|
||||
|
||||
_service.encryptLogins = function (unencryptedLogins, key) {
|
||||
if (!unencryptedLogins) throw "unencryptedLogins is undefined or null";
|
||||
|
@ -18,7 +18,7 @@ angular
|
||||
try {
|
||||
var privateKeyBytes = _service.decrypt(privateKeyCt, key, 'raw');
|
||||
$sessionStorage.privateKey = forge.util.encode64(privateKeyBytes);
|
||||
_privateKey = forge.pki.privateKeyFromAsn1(forge.asn1.fromDer(privateKeyBytes));;
|
||||
_privateKey = forge.pki.privateKeyFromAsn1(forge.asn1.fromDer(privateKeyBytes));
|
||||
}
|
||||
catch (e) {
|
||||
console.log('Cannot set private key. Decryption failed.');
|
||||
@ -171,7 +171,7 @@ angular
|
||||
}
|
||||
|
||||
return orgKeys[orgId];
|
||||
}
|
||||
};
|
||||
|
||||
_service.clearKey = function () {
|
||||
_key = _b64Key = null;
|
||||
|
Loading…
Reference in New Issue
Block a user