gridcoin / Gridcoin-master

MIT License
43 stars 19 forks source link

main.cpp gives the wrong error #13

Open BadWolf-63 opened 9 years ago

BadWolf-63 commented 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

Lederstrumpf commented 9 years ago

Which is the point.

BadWolf-63 commented 9 years ago

Just switching the 2 IFs will solve the problem