mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix login debug with 2FA
This commit is contained in:
parent
3b0ad98fc8
commit
9b755c4b30
@ -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/';
|
||||
};
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user