Update index.html

This commit is contained in:
sairaj mote 2023-10-19 15:32:41 +05:30
parent ee30234c9c
commit 7e7ba03fa0

View File

@ -135,7 +135,8 @@
<p>Welcome back, glad to see you again</p> <p>Welcome back, glad to see you again</p>
<sm-form id="sign_in_form"> <sm-form id="sign_in_form">
<sm-input id="private_key_field" class="password-field" type="password" <sm-input id="private_key_field" class="password-field" type="password"
placeholder="FLO/BTC private key" error-text="Private key is invalid" data-private-key required> placeholder="FLO/BTC/ETH private key" error-text="Private key is invalid" data-private-key
required>
<label slot="right" class="interact"> <label slot="right" class="interact">
<input type="checkbox" class="hidden" autocomplete="off" readonly <input type="checkbox" class="hidden" autocomplete="off" readonly
onchange="togglePrivateKeyVisibility(this)"> onchange="togglePrivateKeyVisibility(this)">
@ -2333,7 +2334,7 @@
} else { } else {
floGlobals.isPrivKeySecured = false; floGlobals.isPrivKeySecured = false;
getRef('private_key_field').dataset.privateKey = '' getRef('private_key_field').dataset.privateKey = ''
getRef('private_key_field').setAttribute('placeholder', 'FLO/BTC private key'); getRef('private_key_field').setAttribute('placeholder', 'FLO/BTC/ETH private key');
getRef('private_key_field').customValidation = (value) => { getRef('private_key_field').customValidation = (value) => {
if (!value) return { isValid: false, errorText: 'Please enter a private key' } if (!value) return { isValid: false, errorText: 'Please enter a private key' }
return { return {