Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the user experience when CSRF token validation fails by replacing a technical error response with a user-friendly message that explains the likely cause and provides an error ID for support purposes.

  • Replaces badRequest() call (HTTP 400) with messageError() + redirect() pattern
  • Adds a unique error ID that's shown to users and logged for correlation
  • Provides a friendlier explanation: "This can happen if you leave your browser open for a long time"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@simonLeary42 simonLeary42 merged commit da8f905 into main Dec 19, 2025
9 checks passed
@simonLeary42 simonLeary42 deleted the csrf-message branch December 19, 2025 17:02
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.

2 participants