From 8a5189370291526b6fdd4da3972a5293fb1f8743 Mon Sep 17 00:00:00 2001 From: Akhil Date: Fri, 7 Nov 2025 13:28:42 +0530 Subject: [PATCH 1/2] (feat) add translation for new checkbox --- l10n/de.js | 3 ++- l10n/de.json | 3 ++- l10n/de_DE.js | 3 ++- l10n/de_DE.json | 3 ++- l10n/en.js | 3 ++- l10n/en.json | 3 ++- l10n/es.js | 3 ++- l10n/es.json | 4 ++-- l10n/fr.js | 3 ++- l10n/fr.json | 3 ++- l10n/it.js | 3 ++- l10n/it.json | 3 ++- 12 files changed, 24 insertions(+), 13 deletions(-) diff --git a/l10n/de.js b/l10n/de.js index 6921720b..a6f88669 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -84,6 +84,7 @@ OC.L10N.register( "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Wenn Sie eine Nachricht sehen, die besagt \"Google hasn't verified this app\", können Sie diese ignorieren, indem Sie auf \"Advanced\" klicken. Wir arbeiten derzeit daran, die erforderliche Zertifizierung von Google zu erhalten, um diese Nachricht zu entfernen.", "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", - "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen." + "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", + "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/de.json b/l10n/de.json index 438832fa..73bdbf29 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -82,7 +82,8 @@ "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Wenn Sie eine Nachricht sehen, die besagt \"Google hasn't verified this app\", können Sie diese ignorieren, indem Sie auf \"Advanced\" tippen. Wir arbeiten derzeit daran, die erforderliche Zertifizierung von Google zu erhalten, um diese Fehlermeldung zu beseitigen.", "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", - "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen." + "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", + "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/de_DE.js b/l10n/de_DE.js index 4003ede0..f60b2e61 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -84,6 +84,7 @@ OC.L10N.register( "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Wenn du eine Nachricht siehst, die besagt \"Google hasn't verified this app\", kannst du sie ignorieren, indem du auf \"Advanced\" klickst. Wir arbeiten derzeit daran, die erforderliche Zertifizierung von Google zu erhalten, um diese Nachricht zu entfernen.", "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", - "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen." + "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", + "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/de_DE.json b/l10n/de_DE.json index 2a886404..2ff3635e 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -82,7 +82,8 @@ "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Wenn du eine Nachricht siehst, die besagt \"Google hasn't verified this app\", kannst du sie ignorieren, indem du auf \"Advanced\" tippst. Wir arbeiten derzeit daran, die erforderliche Zertifizierung von Google zu erhalten, um diese Fehlermeldung zu beseitigen.", "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", - "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen." + "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", + "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/en.js b/l10n/en.js index b89f08a5..1d6acfc7 100644 --- a/l10n/en.js +++ b/l10n/en.js @@ -87,6 +87,7 @@ OC.L10N.register( "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.", "Username is too large.": "Username is too large.", "Display name is too large.": "Display name is too large.", - "Password has invalid characters.": "Password has invalid characters." + "Password has invalid characters.": "Password has invalid characters.", + "I want to stay informed about Murena for business offers": "I want to stay informed about Murena for business offers" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/en.json b/l10n/en.json index 68c5c205..7ab5106a 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -84,7 +84,8 @@ "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.", "Username is too large.": "Username is too large.", "Display name is too large.": "Display name is too large.", - "Password has invalid characters.": "La contraseña tiene caracteres no válidos." + "Password has invalid characters.": "La contraseña tiene caracteres no válidos.", + "I want to stay informed about Murena for business offers": "I want to stay informed about Murena for business offers" }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/es.js b/l10n/es.js index 8f2b5a9b..28e40198 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -86,6 +86,7 @@ OC.L10N.register( "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Si ves un mensaje que dice \"Google hasn't verified this app\", puedes omitirlo haciendo clic en \"Advanced\". Actualmente estamos trabajando para obtener la certificación que Google exige para eliminar este mensaje.", "Username is too large.": "El nombre de usuario es demasiado grande.", "Display name is too large.": "El nombre para mostrar es demasiado grande.", - "Password has invalid characters.": "La contraseña tiene caracteres no válidos." + "Password has invalid characters.": "La contraseña tiene caracteres no válidos.", + "I want to stay informed about Murena for business offers": "Deseo permanecer informado sobre las ofertas de Murena para empresas" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/es.json b/l10n/es.json index 1bb56969..fddf66e0 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -85,8 +85,8 @@ "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Si ves un mensaje que dice \"Google hasn't verified this app\", puedes omitirlo haciendo clic en \"Advanced\". Actualmente estamos trabajando para obtener la certificación que Google exige para eliminar este mensaje.", "Username is too large.": "El nombre de usuario es demasiado grande.", "Display name is too large.": "El nombre para mostrar es demasiado grande.", - "Password has invalid characters.": "Password has invalid characters." - + "Password has invalid characters.": "Password has invalid characters.", + "I want to stay informed about Murena for business offers": "Deseo permanecer informado sobre las ofertas de Murena para empresas" }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/fr.js b/l10n/fr.js index e4276c09..672aa7e6 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -85,6 +85,7 @@ OC.L10N.register( "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Si vous voyez un message disant \"Google hasn't verified this app\" vous pouvez le contourner en cliquant sur \"Advanced\". Nous travaillons actuellement sur l'obtention de la certification exigée par Google pour se débarrasser de ce message.", "Username is too large.": "Le nom d'utilisateur est trop grand.", "Display name is too large.": "Le nom affiché est trop grand.", - "Password has invalid characters.": "Le mot de passe contient des caractères non valides." + "Password has invalid characters.": "Le mot de passe contient des caractères non valides.", + "I want to stay informed about Murena for business offers": "Je souhaite rester informé·e des offres Murena pour les entreprises" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/fr.json b/l10n/fr.json index fd493f69..75a779da 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -84,7 +84,8 @@ "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Si vous voyez un message disant \"Google hasn't verified this app\" vous pouvez le contourner en cliquant sur \"Advanced\". Nous travaillons actuellement sur l'obtention de la certification exigée par Google pour se débarrasser de ce message.", "Username is too large.": "Le nom d'utilisateur est trop grand.", "Display name is too large.": "Le nom affiché est trop grand.", - "Password has invalid characters.": "Le mot de passe contient des caractères non valides." + "Password has invalid characters.": "Le mot de passe contient des caractères non valides.", + "I want to stay informed about Murena for business offers": "Je souhaite rester informé·e des offres Murena pour les entreprises" }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/it.js b/l10n/it.js index 48635b8a..712f4a73 100644 --- a/l10n/it.js +++ b/l10n/it.js @@ -85,6 +85,7 @@ OC.L10N.register( "If you see a \"Google hasn't verified this app\" message you can bypass it by clicking \"Advanced\". We're currently working on passing the certification Google demands to get rid of this message.":"Se vedi un messaggio che dice \"Google hasn't verified this app\", puoi ignorarlo facendo clic su \"Advanced\". Attualmente stiamo lavorando per ottenere la certificazione richiesta da Google per eliminare questo messaggio.", "Username is too large.": "Il nome utente è troppo grande.", "Display name is too large.": "Il nome del display è troppo grande.", - "Password has invalid characters.": "La password contiene caratteri non validi." + "Password has invalid characters.": "La password contiene caratteri non validi.", + "I want to stay informed about Murena for business offers": "Desidero ricevere informazioni sulle offerte commerciali di Murena" }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/it.json b/l10n/it.json index a69f0ba0..1d7ce2f8 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -81,7 +81,8 @@ "Username is too large.": "Il nome utente è troppo grande.", "Display name is too large.": "Il nome del display è troppo grande.", "Password has invalid characters.": "La password contiene caratteri non validi.", - "I have read and accept the Terms of Service.": "Ho letto e accetto i Termini di servizio." + "I have read and accept the Terms of Service.": "Ho letto e accetto i Termini di servizio.", + "I want to stay informed about Murena for business offers": "Desidero ricevere informazioni sulle offerte commerciali di Murena" }, "pluralForm": "nplurals=2; plural=(n != 1);" } -- GitLab From 5a5fb3c02178d84a5acec0c0d1ca36f3481582c0 Mon Sep 17 00:00:00 2001 From: Akhil Date: Fri, 7 Nov 2025 13:44:45 +0530 Subject: [PATCH 2/2] (feat) add API parameter for B2B newsletter --- README.md | 7 +++++++ l10n/de.js | 2 +- l10n/de.json | 2 +- l10n/de_DE.js | 2 +- l10n/de_DE.json | 2 +- l10n/en.js | 2 +- l10n/en.json | 2 +- l10n/es.js | 2 +- l10n/es.json | 2 +- l10n/fr.js | 2 +- l10n/fr.json | 2 +- l10n/it.js | 2 +- l10n/it.json | 2 +- lib/Controller/AccountController.php | 4 ++-- lib/Service/NewsLetterService.php | 30 ++++++++++++++-------------- src/Signup.vue | 1 + src/signup/RegistrationForm.vue | 15 ++++++++++++++ 17 files changed, 52 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 1378930d..608c14de 100644 --- a/README.md +++ b/README.md @@ -136,3 +136,10 @@ The values should be set as follows: - `oidc_admin_password` (password of admin account) - `oidc_login_provider_url` (provider URL: see also https://github.com/pulsejet/nextcloud-oidc-login) - `oidc_admin_sync_2fa` -> (set to boolean value true to enable sync; defaults to false) + +## Newsletter signup configuration: + +- `occ config:system:set newsletter_base_url --value='https://abcd'`: should be set to the newsletter API's base url +- `occ config:system:set newsletter_list_ids eos --value=1234`: should be set to the list ID for the eOS newsletter +- `occ config:system:set newsletter_list_ids product --value=1234 --type=integer` should be set to the list ID for the shop newsletter +- `occ config:system:set newsletter_list_ids b2b --value=1234 --type=integer` should be set to the list ID for the B2B newsletter diff --git a/l10n/de.js b/l10n/de.js index a6f88669..061616ec 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -85,6 +85,6 @@ OC.L10N.register( "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", - "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" + "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten." }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/de.json b/l10n/de.json index 73bdbf29..9c322e11 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -83,7 +83,7 @@ "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", - "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" + "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten." }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/de_DE.js b/l10n/de_DE.js index f60b2e61..02506c4c 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -85,6 +85,6 @@ OC.L10N.register( "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", - "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" + "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten." }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/de_DE.json b/l10n/de_DE.json index 2ff3635e..62ce0c0f 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -83,7 +83,7 @@ "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", - "I want to stay informed about Murena for business offers": "Ich möchte Informationen über Murenas Angebote erhalten" + "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten." }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/en.js b/l10n/en.js index 1d6acfc7..c277c8a5 100644 --- a/l10n/en.js +++ b/l10n/en.js @@ -88,6 +88,6 @@ OC.L10N.register( "Username is too large.": "Username is too large.", "Display name is too large.": "Display name is too large.", "Password has invalid characters.": "Password has invalid characters.", - "I want to stay informed about Murena for business offers": "I want to stay informed about Murena for business offers" + "I want to stay informed about Murena for business offers.": "I want to stay informed about Murena for business offers." }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/en.json b/l10n/en.json index 7ab5106a..e75f0542 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -85,7 +85,7 @@ "Username is too large.": "Username is too large.", "Display name is too large.": "Display name is too large.", "Password has invalid characters.": "La contraseña tiene caracteres no válidos.", - "I want to stay informed about Murena for business offers": "I want to stay informed about Murena for business offers" + "I want to stay informed about Murena for business offers.": "I want to stay informed about Murena for business offers." }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/es.js b/l10n/es.js index 28e40198..492bf246 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -87,6 +87,6 @@ OC.L10N.register( "Username is too large.": "El nombre de usuario es demasiado grande.", "Display name is too large.": "El nombre para mostrar es demasiado grande.", "Password has invalid characters.": "La contraseña tiene caracteres no válidos.", - "I want to stay informed about Murena for business offers": "Deseo permanecer informado sobre las ofertas de Murena para empresas" + "I want to stay informed about Murena for business offers.": "Deseo permanecer informado sobre las ofertas de Murena para empresas." }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/es.json b/l10n/es.json index fddf66e0..0d68ec1b 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -86,7 +86,7 @@ "Username is too large.": "El nombre de usuario es demasiado grande.", "Display name is too large.": "El nombre para mostrar es demasiado grande.", "Password has invalid characters.": "Password has invalid characters.", - "I want to stay informed about Murena for business offers": "Deseo permanecer informado sobre las ofertas de Murena para empresas" + "I want to stay informed about Murena for business offers.": "Deseo permanecer informado sobre las ofertas de Murena para empresas." }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/fr.js b/l10n/fr.js index 672aa7e6..0fb559f6 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -86,6 +86,6 @@ OC.L10N.register( "Username is too large.": "Le nom d'utilisateur est trop grand.", "Display name is too large.": "Le nom affiché est trop grand.", "Password has invalid characters.": "Le mot de passe contient des caractères non valides.", - "I want to stay informed about Murena for business offers": "Je souhaite rester informé·e des offres Murena pour les entreprises" + "I want to stay informed about Murena for business offers.": "Je souhaite rester informé·e des offres Murena pour les entreprises." }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/fr.json b/l10n/fr.json index 75a779da..09221b13 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -85,7 +85,7 @@ "Username is too large.": "Le nom d'utilisateur est trop grand.", "Display name is too large.": "Le nom affiché est trop grand.", "Password has invalid characters.": "Le mot de passe contient des caractères non valides.", - "I want to stay informed about Murena for business offers": "Je souhaite rester informé·e des offres Murena pour les entreprises" + "I want to stay informed about Murena for business offers.": "Je souhaite rester informé·e des offres Murena pour les entreprises." }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/l10n/it.js b/l10n/it.js index 712f4a73..a7630b90 100644 --- a/l10n/it.js +++ b/l10n/it.js @@ -86,6 +86,6 @@ OC.L10N.register( "Username is too large.": "Il nome utente è troppo grande.", "Display name is too large.": "Il nome del display è troppo grande.", "Password has invalid characters.": "La password contiene caratteri non validi.", - "I want to stay informed about Murena for business offers": "Desidero ricevere informazioni sulle offerte commerciali di Murena" + "I want to stay informed about Murena for business offers.": "Desidero ricevere informazioni sulle offerte commerciali di Murena." }, "nplurals=2; plural=(n != 1);"); diff --git a/l10n/it.json b/l10n/it.json index 1d7ce2f8..d7152c44 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -82,7 +82,7 @@ "Display name is too large.": "Il nome del display è troppo grande.", "Password has invalid characters.": "La password contiene caratteri non validi.", "I have read and accept the Terms of Service.": "Ho letto e accetto i Termini di servizio.", - "I want to stay informed about Murena for business offers": "Desidero ricevere informazioni sulle offerte commerciali di Murena" + "I want to stay informed about Murena for business offers.": "Desidero ricevere informazioni sulle offerte commerciali di Murena." }, "pluralForm": "nplurals=2; plural=(n != 1);" } diff --git a/lib/Controller/AccountController.php b/lib/Controller/AccountController.php index b9e0d16b..54d316ac 100644 --- a/lib/Controller/AccountController.php +++ b/lib/Controller/AccountController.php @@ -143,7 +143,7 @@ class AccountController extends Controller { * * @return \OCP\AppFramework\Http\DataResponse */ - public function create(string $recoveryEmail, string $password = '', string $language = 'en', bool $newsletterEos = false, bool $newsletterProduct = false): DataResponse { + public function create(string $recoveryEmail, string $password = '', string $language = 'en', bool $newsletterEos = false, bool $newsletterProduct = false, bool $newsletterB2B = false): DataResponse { $response = new DataResponse(); @@ -206,7 +206,7 @@ class AccountController extends Controller { $this->userService->createNewDomainAlias($username, $userEmail); $this->userService->setTOS($username, true); $this->userService->setUserLanguage($username, $language); - $this->newsletterService->setNewsletterSignup($newsletterEos, $newsletterProduct, $userEmail, $language); + $this->newsletterService->setNewsletterSignup($newsletterEos, $newsletterProduct, $newsletterB2B, $userEmail, $language); $this->userService->setRecoveryEmail($username, ''); if($recoveryEmail !== '') { $this->userService->setUnverifiedRecoveryEmail($username, $recoveryEmail); diff --git a/lib/Service/NewsLetterService.php b/lib/Service/NewsLetterService.php index 3aca33a6..4fb41ebd 100644 --- a/lib/Service/NewsLetterService.php +++ b/lib/Service/NewsLetterService.php @@ -28,24 +28,24 @@ class NewsLetterService { $this->logger = $logger; } - public function setNewsletterSignup(bool $newsletterEos, bool $newsletterProduct, string $userEmail, string $language): void { + public function setNewsletterSignup(bool $newsletterEos, bool $newsletterProduct, bool $newsletterB2B, string $userEmail, string $language): void { try { - if ($newsletterEos || $newsletterProduct) { - $listIds = []; - $newsletterListIds = $this->config->getSystemValue('newsletter_list_ids'); - if ($newsletterEos) { - $listIds[] = $newsletterListIds['eos']; - } + $listIds = []; + $newsletterListIds = $this->config->getSystemValue('newsletter_list_ids'); + if ($newsletterEos) { + $listIds[] = $newsletterListIds['eos']; + } + + if ($newsletterProduct) { + $listIds[] = $newsletterListIds['product']; + } - if ($newsletterProduct) { - $listIds[] = $newsletterListIds['product']; - } + if ($newsletterB2B) { + $listIds[] = $newsletterListIds['b2b']; + } - if (!empty($listIds)) { - - $this->signupForNewsletter($userEmail, $listIds, $language); - - } + if (!empty($listIds)) { + $this->signupForNewsletter($userEmail, $listIds, $language); } } catch (Exception $e) { $this->logger->error('Signup for newsletter failed: ' . $e->getMessage()); diff --git a/src/Signup.vue b/src/Signup.vue index 719b96ff..9f0d163c 100644 --- a/src/Signup.vue +++ b/src/Signup.vue @@ -97,6 +97,7 @@ export default { language: this.formData.selectedLanguage, newsletterEos: this.formData.newsletterEos, newsletterProduct: this.formData.newsletterProduct, + newsletterB2B: this.formData.newsletterB2B } this.submitForm(data) } diff --git a/src/signup/RegistrationForm.vue b/src/signup/RegistrationForm.vue index 89f1feed..15fad12d 100644 --- a/src/signup/RegistrationForm.vue +++ b/src/signup/RegistrationForm.vue @@ -150,6 +150,21 @@ + +
+
+
+ + + + +
+
+
+