feat(user): block unverified_email from being sent

This commit is contained in:
simon lehericey 2024-05-28 11:08:34 +02:00
parent 659600adba
commit 607fbf5287
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
4 changed files with 78 additions and 3 deletions

View file

@ -29,4 +29,6 @@ class Individual < ApplicationRecord
gender: fc_information.gender == 'female' ? GENDER_FEMALE : GENDER_MALE
)
end
def unverified_email? = !email_verified_at?
end