Open BadWolf-63 opened 9 years ago
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
Which is the point.
Just switching the 2 IFs will solve the problem
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