Update index.html
This commit is contained in:
parent
8b6646a2eb
commit
b11c217ec4
17
index.html
17
index.html
@ -2804,21 +2804,8 @@
|
|||||||
floDapps.setCustomPrivKeyInput(getSignedIn)
|
floDapps.setCustomPrivKeyInput(getSignedIn)
|
||||||
|
|
||||||
floDapps.launchStartUp().then(async result => {
|
floDapps.launchStartUp().then(async result => {
|
||||||
if (!floCrypto.validateFloID(floDapps.user.id)) {
|
floGlobals.myFloID = floCrypto.toFloID(floDapps.user.id);
|
||||||
floGlobals.myBtcID = floDapps.user.id
|
floGlobals.myBtcID = btcOperator.convert.legacy2bech(floGlobals.myFloID)
|
||||||
const type = coinjs.addressDecode(floGlobals.myBtcID).type
|
|
||||||
if (type === 'standard') {
|
|
||||||
floGlobals.myFloID = btcOperator.convert.legacy2legacy(floGlobals.myBtcID, 0x23);
|
|
||||||
} else if (type === 'bech32') {
|
|
||||||
floGlobals.myFloID = btcOperator.convert.bech2legacy(floGlobals.myBtcID, 0x23);
|
|
||||||
} else {
|
|
||||||
notify(`Multisig address can't be used to sign in`, 'error');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
floGlobals.myFloID = floDapps.user.id
|
|
||||||
floGlobals.myBtcID = btcOperator.convert.legacy2bech(floDapps.user.id)
|
|
||||||
}
|
|
||||||
floGlobals.isSubAdmin = floGlobals.subAdmins.includes(floGlobals.myFloID)
|
floGlobals.isSubAdmin = floGlobals.subAdmins.includes(floGlobals.myFloID)
|
||||||
getRef('user_flo_id').value = floGlobals.myFloID
|
getRef('user_flo_id').value = floGlobals.myFloID
|
||||||
getRef('user_btc_id').value = btcOperator.convert.legacy2bech(floGlobals.myFloID)
|
getRef('user_btc_id').value = btcOperator.convert.legacy2bech(floGlobals.myFloID)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user