Skip to content

Fix inverted boolean logic in registration validation - #943

Merged
chinweobtagaz merged 1 commit into
OpenKnight-Foundation:mainfrom
shadrach68:booleanLogic
Aug 3, 2026
Merged

Fix inverted boolean logic in registration validation#943
chinweobtagaz merged 1 commit into
OpenKnight-Foundation:mainfrom
shadrach68:booleanLogic

Conversation

@shadrach68

Copy link
Copy Markdown
Contributor

Resolved a critical validation flaw in the registration process where players could register with duplicate email or username combinations. The original logic incorrectly required both email and username to be taken to reject registration, allowing duplicates that violated database constraints. This change updates the condition from && to || to ensure registration is rejected if either email or username is already taken, preventing database constraint violations and ensuring data integrity.

Validation: Ran diagnostics to confirm no regressions. No tests failed.

@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@shadrach68 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@shadrach68

Copy link
Copy Markdown
Contributor Author

please review and merge.

@chinweobtagaz
chinweobtagaz merged commit fb033bc into OpenKnight-Foundation:main Aug 3, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

BE-08: Inverted Boolean Logic in Registration

2 participants