Skip to content

Referral email should be case_insensitive #198

@jwjwyoung

Description

@jwjwyoung

validates :email, presence: true,

with current validation code, I can create referrals with same email adrress with lowercase/uppercase as attached.

image

I believe here should use
validates :email, presence: true, uniqueness: {case_sensitive: false}, format: { with: CustomValidators::Emails.email_validator }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions