This commit is contained in:
Sai Raj 2019-08-09 15:39:10 +05:30 committed by GitHub
parent 24c4542d92
commit 29bccda9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ function signIn(){
login();
}catch(msg){
console.log(msg)
customAlert(`${msg}<span class="closebtn" onclick="this.parentElement.parentElement.style.display='none'; signUp();">&#10004;</span>`,'warning');
customAlert(`${msg}<span class="closebtn" onclick="this.parentElement.style.display='none'; signUp();">&#10004;</span>`,'warning');
}
}
@ -97,9 +97,9 @@ function login(){
}
function signUp(){
registerID(floID,window.location.host,privKey,privKey.getPubKeyHex(),username).then(result =>{
registerID(floID,window.location.host,privKey,encrypt.getPubKeyHex(privKey),username).then(result =>{
customAlert(`Registration Successful!<br/> txid : ${result}`,'success');
refreshAPIdata().then(result => {
reloadInitData().then(result => {
console.log(result);
login();
}).catch(error => {