Fix account password change issue

This commit is contained in:
yflory 2023-09-12 17:10:18 +02:00
parent 2c12ff5d72
commit 63bd707cea
1 changed files with 3 additions and 2 deletions

View File

@ -1952,8 +1952,9 @@ define([
console.log("checking if old drive is owned");
common.anonRpcMsg('GET_METADATA', secret.channel, waitFor(function (err, obj) {
if (err || obj.error) { return; }
if (obj.owners && Array.isArray(obj.owners) &&
obj.owners.indexOf(edPublic) !== -1) {
var md = obj[0];
if (md && md.owners && Array.isArray(md.owners) &&
md.owners.indexOf(edPublic) !== -1) {
oldIsOwned = true;
}
}));