Merge pull request #10705 from demarches-simplifiees/email-expert-need-confirmation-ldu

ETQ expert, je dois confirmer mon mail
This commit is contained in:
Lisa Durand 2024-08-22 12:53:52 +00:00 committed by GitHub
commit 8e7e8d9624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 122 additions and 21 deletions

View file

@ -42,7 +42,7 @@ class Users::ActivateController < ApplicationController
else
if user.present?
flash[:alert] = "Ce lien n'est plus valable, un nouveau lien a été envoyé à l'adresse #{user.email}"
User.create_or_promote_to_tiers(user.email, SecureRandom.hex)
user.resend_confirmation_email!
else
flash[:alert] = "Un problème est survenu, vous pouvez nous contacter sur #{Current.contact_email}"
end