From 149c0aec57054f536ea8e29226fea61348207ce4 Mon Sep 17 00:00:00 2001 From: quentinchampenois Date: Tue, 27 Jun 2023 15:26:42 +0200 Subject: [PATCH] Enable email_on_notification by default on registration --- app/commands/decidim/create_registration.rb | 2 +- spec/commands/decidim/create_registration_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands/decidim/create_registration.rb b/app/commands/decidim/create_registration.rb index ccf29588..02282ca0 100644 --- a/app/commands/decidim/create_registration.rb +++ b/app/commands/decidim/create_registration.rb @@ -46,7 +46,7 @@ def create_user organization: form.current_organization, tos_agreement: form.tos_agreement, newsletter_notifications_at: form.newsletter_at, - email_on_notification: false, + email_on_notification: true, accepted_tos_version: form.current_organization.tos_version, locale: form.current_locale, registration_metadata: registration_metadata diff --git a/spec/commands/decidim/create_registration_spec.rb b/spec/commands/decidim/create_registration_spec.rb index d675019c..f7667daf 100644 --- a/spec/commands/decidim/create_registration_spec.rb +++ b/spec/commands/decidim/create_registration_spec.rb @@ -151,7 +151,7 @@ module Comments password: form.password, password_confirmation: form.password_confirmation, tos_agreement: form.tos_agreement, - email_on_notification: false, + email_on_notification: true, organization: organization, accepted_tos_version: organization.tos_version, locale: form.current_locale,