Line 1464:
if (structcpid.verifiedteam != "gridcoin")
{
structcpid.Iscpidvalid = false;
structcpid.errors = "Team invalid";
}
if (!structcpid.Iscpidvalid)
{
structcpid.Iscpidvalid = false;
structcpid.errors = "CPID invalid. Check E-mail address.";
}
The second IF overwrite the first one giving the CPID invalid error also when the VERIFIED TEAM is invalid.
Best regards
BadWolf63
Line 1464:
if (structcpid.verifiedteam != "gridcoin")
{
structcpid.Iscpidvalid = false;
structcpid.errors = "Team invalid";
}
if (!structcpid.Iscpidvalid)
{
structcpid.Iscpidvalid = false;
structcpid.errors = "CPID invalid. Check E-mail address.";
}
The second IF overwrite the first one giving the CPID invalid error also when the VERIFIED TEAM is invalid.
Best regards
BadWolf63