Fix login debug with 2FA

This commit is contained in:
yflory 2025-12-16 16:21:56 +01:00
parent 3b0ad98fc8
commit 9b755c4b30
2 changed files with 10 additions and 9 deletions

View File

@ -90,15 +90,6 @@ define([
return;
}
}
if (window.location.hash === '#debug') {
let hash = LocalStore.getBlockHash();
let parsed;
if (hash) { parsed = Block.parseBlockHash(hash); }
alert(JSON.stringify({
blockId: parsed.href || '?'
}, 0, 2));
return;
}
window.location.href = '/drive/';
};

View File

@ -316,6 +316,16 @@ define([
res.opt = allocateBytes(bytes);
res.blockHash = res.opt.blockHash;
blockKeys = res.opt.blockKeys;
if (window.location.hash === '#debug') {
let hash = LocalStore.getBlockHash();
let parsed;
if (hash) { parsed = Block.parseBlockHash(hash); }
alert(JSON.stringify({
blockId: Util.encodeBase64(blockKeys.sign.publicKey)
}, 0, 2));
waitFor.abort();
return;
}
if (ssoAuth && ssoAuth.name) { uname = res.uname = ssoAuth.name; }
}));
}).nThen(function (waitFor) {