Skip to content

[Bug]: Newsletter Form Missing Email Validation & Storage #1108

@suman20041

Description

@suman20041

Description

The newsletter form on the home page submits successfully but lacks proper email validation and doesn't store subscriber data, making it ineffective for collecting genuine leads.

Steps to Reproduce

  • Navigate to the home page
  • Scroll to the newsletter section at the bottom
  • Enter an invalid email (e.g., "test" or "test@domain")
  • Click Subscribe button
  • Form submits without proper validation
  • Success message appears regardless of email validity

Expected Behavior

  • Form should validate email format using regex
  • Show specific error message for invalid emails
  • Store valid emails in localStorage
  • Prevent duplicate subscriptions
  • Display appropriate success/error messages

Actual Behavior

  • Form accepts invalid email formats (e.g., "test", "test@", "@domain.com")
  • No validation beyond HTML5 type="email" attribute
  • Only shows a generic success message without storing subscriber information
  • No duplicate email detection

Metadata

Metadata

Assignees

Labels

ECWoC26bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions