Browse Source

Skip first api return

dev
jl777 7 years ago
parent
commit
849ae3c100
  1. 3
      iguana/exchanges/LP_commands.c

3
iguana/exchanges/LP_commands.c

@ -178,6 +178,8 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\
{ {
char pub33str[67]; char pub33str[67];
G.USERPASS_COUNTER = 1; G.USERPASS_COUNTER = 1;
if ( 0 )
{
retjson = cJSON_CreateObject(); retjson = cJSON_CreateObject();
jaddstr(retjson,"userpass",G.USERPASS); jaddstr(retjson,"userpass",G.USERPASS);
jaddbits256(retjson,"mypubkey",G.LP_mypub25519); jaddbits256(retjson,"mypubkey",G.LP_mypub25519);
@ -187,6 +189,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\
LP_cmdcount++; LP_cmdcount++;
return(jprint(retjson,1)); return(jprint(retjson,1));
} }
}
// if passphrase api and passphrase is right, ignore userpass, use hass of passphrase // if passphrase api and passphrase is right, ignore userpass, use hass of passphrase
if ( strcmp(method,"passphrase") == 0 && (passphrase= jstr(argjson,"passphrase")) != 0 ) if ( strcmp(method,"passphrase") == 0 && (passphrase= jstr(argjson,"passphrase")) != 0 )
{ {

Loading…
Cancel
Save