Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(email): stricter validation #9978

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

mfo
Copy link
Contributor

@mfo mfo commented Feb 9, 2024

hs: https://secure.helpscout.net/conversation/2465440187/2050709/

verifier les autres parties du code qui utilisent Devise.email_regexp et utiliser la nouvelle constante

TODO: add env var ENV['STRICT_EMAIL_VALIDATION_STARTS_ON'] = Time.now+1.day after deploy (env var must be set after deploy, otherwise their is a risk having instances validated with this method but not compliant with the validtion rule, can stuck your system). then stricter validation will start kicking of

@mfo mfo marked this pull request as draft February 9, 2024 08:56
@mfo mfo force-pushed the US/enforce-real-email-validation branch 3 times, most recently from 0bf1039 to 6571621 Compare February 13, 2024 09:39
@mfo mfo changed the title wip: email validation for email champs sounds like a good idea feat(email): stricter validation Feb 13, 2024
@mfo mfo force-pushed the US/enforce-real-email-validation branch 9 times, most recently from 13b698e to fb39bf4 Compare February 13, 2024 15:03
@mfo mfo marked this pull request as ready for review February 13, 2024 16:44
Copy link
Member

@colinux colinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déjà super, ça va diminuer pas mal de bugs/support.
Première vague de retour avec quelques propositions. Ça va me travailler encore , y en aura peut-être d'autres :)

app/validators/strict_email_validator.rb Outdated Show resolved Hide resolved
app/models/user.rb Outdated Show resolved Hide resolved
app/models/user.rb Outdated Show resolved Hide resolved
app/validators/strict_email_validator.rb Outdated Show resolved Hide resolved
app/validators/strict_email_validator.rb Show resolved Hide resolved
@mfo mfo force-pushed the US/enforce-real-email-validation branch 4 times, most recently from 446d82d to ee97c78 Compare February 15, 2024 09:30
@mfo mfo enabled auto-merge February 15, 2024 09:47
@mfo mfo added this pull request to the merge queue Feb 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 15, 2024
Martin and others added 4 commits February 15, 2024 16:41
…mps::EmailChamp.value only on validation context

Co-authored-by: Paul Chavard <github@paul.chavard.net>
…Champ.value, simplier default strict validation activation

Co-authored-by: Colin Darie <colin@darie.eu>
@mfo mfo added this pull request to the merge queue Feb 15, 2024
@mfo mfo force-pushed the US/enforce-real-email-validation branch from ee97c78 to 8488e74 Compare February 15, 2024 15:41
github-merge-queue bot pushed a commit that referenced this pull request Feb 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 15, 2024
@mfo mfo added this pull request to the merge queue Feb 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 16, 2024
@mfo mfo added this pull request to the merge queue Feb 16, 2024
Merged via the queue into demarches-simplifiees:main with commit cc53946 Feb 16, 2024
15 checks passed
@mfo mfo deleted the US/enforce-real-email-validation branch February 16, 2024 09:38
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.

3 participants