Prompt file imported from jimmybrancaccio/cmangos-starter-website (
.github/prompts/auth-check.prompt.md). Copyright stays with the author.
Review authentication-related changes in this workspace and report findings.
Focus files:
Checklist:
- Input validation is present for all required POST fields before use.
- SQL with user input uses prepared statements (no raw interpolation for username, password-derived values, email, or IP).
- Registration path correctly reads and validates
emailbefore insert. - Login path handles no-row account lookups safely.
- Login path guards against null/empty SRP salt or verifier values before comparison.
- Success and failure outcomes are explicit and user-visible (redirect/session flash/message), not silent blank responses.
- Changes keep SRP library usage intact and do not modify vendor files.
- Configuration defaults continue to come from configuration.php, not hardcoded literals.
Output format:
- Findings first, ordered by severity, each with file reference and exact fix recommendation.
- Open questions/assumptions.
- Brief change summary.
- Validation steps to run locally:
php -l login.phpphp -l register.php- Manual tests for login and registration success/failure paths.
If no issues are found, explicitly say so and list residual risks (for example, missing integration tests against a live CMaNGOS realmd schema).