Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.cpp gives the wrong error #13

Open
BadWolf-63 opened this issue Dec 21, 2014 · 2 comments
Open

main.cpp gives the wrong error #13

BadWolf-63 opened this issue Dec 21, 2014 · 2 comments

Comments

@BadWolf-63
Copy link

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
Copy link
Contributor

Which is the point.

@BadWolf-63
Copy link
Author

Just switching the 2 IFs will solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants