Skip to content

[WIP] Implement Email Format Validation - #10

Draft
Vuk7912 wants to merge 13 commits into
NicolaFattore:f29f55ba-dc41-4222-9358-a90ec78f48aefrom
Vuk7912:feature-email-format-validation-1747181248
Draft

[WIP] Implement Email Format Validation#10
Vuk7912 wants to merge 13 commits into
NicolaFattore:f29f55ba-dc41-4222-9358-a90ec78f48aefrom
Vuk7912:feature-email-format-validation-1747181248

Conversation

@Vuk7912

@Vuk7912 Vuk7912 commented May 14, 2025

Copy link
Copy Markdown

Implement Email Format Validation

Description

Task

Implement Email Format Validation

Acceptance Criteria

  • Implement RFC 5322 standard email format validation regex
    Ensure email validation prevents registration with invalid email formats
    Add database-level unique constraint on email field
    Create unit tests covering at least 10 different email format scenarios (valid and invalid)
    Implement case-insensitive email uniqueness check

Summary of Work

This pull request implements robust email format validation to enhance user input security and data integrity.

Key Changes:

  • Add email validation logic to ensure proper email format
  • Implement client-side and server-side email validation
  • Improve form input validation for email-related fields

Validation Approach:

  • Use a comprehensive regex pattern to validate email format
  • Ensure validation covers common email format requirements
  • Provide clear error messaging for invalid email formats

Scope:

  • Client-side validation in form components
  • Potential updates to form handling components
  • Validation utility function in shared utilities

Next Steps:

  • Implement comprehensive test cases
  • Perform cross-browser validation testing
  • Review and refine validation regex if needed

Changes Made

  • Create email validation utility function
  • Update form components to use email validation
  • Add client-side email format checking

Tests

  • Verify email validation regex covers standard email formats
  • Check handling of edge case email formats
  • Ensure clear error messaging for invalid emails

Signatures

Staking Key

3oBzgQ4y8YtmkxYGkse1fKKefi25twpMKU9BBdsYtjDQ: 2Np7JEM9KE7NVkzw1z7v1KK5oecf2PLkkYrMyEvAJqYuXAPrTN2b2y3gLmKTRkiYfumC6FLeKcx4M1wsedebLF95SCZAX3gvgSiKPmzC6HvkUaqqtWun7HfV57rWs332YBk9XMJbhUqjktmkbeKN5jrWJJ99RuFNTXNPXXvn1M1Z16APcr5GmHue6y76XHUovpQmeNXtAC3zLKbdWGJxEB9s2q8G3jodEC24d9t4QCczdttq1HGuunwRd2JC7g1SU2H2LYtxXs7KMMtMMeQ5eiVxfHuE5sLCFL7YYW1xvqKc82J3RdDdvcfruBRmjEyCDhFFBjdmqDZNFn42ChJwTsHrjyzrk3pkwJnuspHSbGyA42N7GoQQHiVF7pMYTeet3fgoewstZF3aK7DzTgbg4cK4AdxbsYFe

Public Key

4WA5vRJLthsg6sJqVc6DQuRkGzvoxZ11SkqzwbqxCo2V: L79ut5AW6ip8vbGMdCUpzeZKYpTTYkYXzjcz5YbzXn369wAWWQbeJKwK8QDesEVy6rQdS4dAbRiwWdhmLqk2yVEJ5tDtSLpJznkje28zKmuN6ocAK6JTSYp8koWkqNpVUEnNtcBQzM7sNybGYa9wxfzPLi8x85SM8P7pY58aYXmEPKRtXrJsB6rFX5LbMbpWf4xQ3Uzn9jJnezaCwrGPkq5CRRUdT5avKFEJ8hPLrFDfzjQbXZYtzZwreiNUgfP1d6oa7U99VmuTvFqFKhMSuniA32ZAnz8ZwLxe51s5SX1Xg64sdoYcNdD15vAZ27tzrkVDXzGcYUYxjHDM2vRPTfURGjqekUF3vatWqpFAH56AQRo9Q36deAB4TN18zSLmNQ9gPTJ6SLVSVh4jerDp7dCQf8jGvHJ

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.

1 participant