Skip to content
SprecherEast
Issue 204

bug: Visitors see raw server error text on the contact and password forms

Back to our plan
Done
bugfrontendauthpriority: high

Type

bug

Summary

Forms show the server's own error text, such as "Internal Server Error", instead of a fixed friendly message. The security guideline forbids this on auth endpoints.

Problem

  • The contact form shows the server's message (src/blocks/Form/Component.tsx:119).
  • The change-password form shows the server's message (src/app/(frontend)/account/ChangePasswordForm.tsx:49).

Found while taking the UI inventory (https://github.com/boulaajaj/sprecher-east-neighborhood-website/blob/main/docs/ui/evidence.md#bugs-found-while-taking-the-inventory, opens in a new tab, #170).

Proposed fix

Show fixed messages per case (try again, check your input, too many tries) and log the raw error on the server only.

Acceptance criteria

  • Not done: No raw server text reaches the page on either form.
  • Not done: The messages follow the error pattern in docs/guidelines/components-and-content.md (role="alert").

Area

frontend, auth

Priority

priority: high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab