feat(User): verify mandat email during creation
This commit is contained in:
parent
dbf6459b4b
commit
1cf9535bea
2 changed files with 3 additions and 0 deletions
|
@ -149,6 +149,8 @@ module Users
|
|||
@no_description = true
|
||||
|
||||
if @dossier.update(dossier_params) && @dossier.individual.valid?
|
||||
# TODO: remove this after proper mandat email validation
|
||||
@dossier.individual.update!(email_verified_at: Time.zone.now)
|
||||
@dossier.update!(autorisation_donnees: true, identity_updated_at: Time.zone.now)
|
||||
flash.notice = t('.identity_saved')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue