Skip to content

Commit

Permalink
Enable email_on_notification by default on registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Jun 27, 2023
1 parent 732da5e commit 149c0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/commands/decidim/create_registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/commands/decidim/create_registration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 149c0ae

Please sign in to comment.