Skip to content

[WIP] Add Email Format Validation for User Authentication - #19

Draft
Merango wants to merge 20 commits into
NicolaFattore:f29f55ba-dc41-4222-9358-a90ec78f48aefrom
Merango:feature-email-validation-1747226069
Draft

[WIP] Add Email Format Validation for User Authentication#19
Merango wants to merge 20 commits into
NicolaFattore:f29f55ba-dc41-4222-9358-a90ec78f48aefrom
Merango:feature-email-validation-1747226069

Conversation

@Merango

@Merango Merango commented May 14, 2025

Copy link
Copy Markdown

Add Email Format Validation for User Authentication

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 comprehensive email format validation to enhance form input security and user experience. The validation will ensure that email addresses entered in registration and login forms meet standard formatting requirements.

Changes Made

  • Implement client-side email validation regex
  • Add server-side email validation logic
  • Create reusable email validation utility function
  • Update form components to integrate email validation

Tests

  • Verify regex matches valid email formats
  • Confirm rejection of invalid email formats
  • Test email validation across different form components
  • Ensure consistent error messaging for invalid emails

Signatures

Staking Key

Gkn3eRUR8rbiHgjXYmXWKgBQnGQWEhJk1n9rvecfFxTm: 2G8CL4oYTs88ms5BDHgRfna1SRa3qzaNGtKnSYfVrutkygaztYW2SZ7XzN6kikfuj33WtaoXP9uNomHuYhH5E8PjgcGxpZ79fKywekjR81nCy2xgwHF3cvG2r1cNi5FSefuaxbTAFriK5AnfjbdpRSVAzE4W4Nr9f7WwFB5hEBJyFKX4BmRaDBsFYk5HpJ4A141GKNYESgpRs6YARDvUWfpTeJYr8TsQQtZT6bGbXUMyHHoGXxAeBvmN3uAgspVSNkXNXD9UPxcPsSVxPQEziHHR9szcZfBVtYKAYAmvTE8227oUKyD5sZGwyT2kHxD2fTMQRe84RYrWZm5BWyxtquH98JCnRgDNawNLFFK5twcWJ2AzEac44VfbxWY4ApjgfL176GtmUupYpVsaRQ48C49KYBUtqNqS

Public Key

Gq6qy4e4ja8P8iQiawFZvBSYYd62G4X2swAb5rr2axvw: wziwzSf2kDnRGDJSdEZq2ixTHCJE9rXr2wQ3CsZysUfDxLqsJXHUCzmvn23SofhvCndMi7F3JG8asmey2ntdwBV37mNVs1QNQkq7WQQ8Krf1daSiRfodT3o8BiS7WFRfNdCdzBRC6B4nSJUsKjmqUdQhH9oLVpzrZiqtbT1sHJtZp3xRFUbYgGUTAATfzSC8zhdnQLKjsVUZzFDxAS8FAgu3FpKHFBNSpgQtLt8vYNBe9Rofj1Du7YovUhyULpPoVZpc6dwcKRDbgLe21ziyrW3yYU1RFLfE5Djg8jwcucR8dytVy2aFNXH9Y3DXhTesCa9tKXz78Yp831NoArBjzyVdJXpY1BCx8ETMED6FUa3qKapthFJhdcJYEHcxtnw4FN9b5YmJgTzbhEukXbYfCDjXbzfRuNk

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