Loading lib/Controller/AccountController.php +6 −6 Original line number Diff line number Diff line Loading @@ -91,12 +91,12 @@ class AccountController extends Controller { * @param string $username User's username * @param string $password User's password * @param string $language User's language preference * @param bool $newsletter_eos Users's subscribe to eos newsletter * @param bool $newsletter_product Users's subscribe to murena product newsletter * @param bool $newsletterEos Users's subscribe to eos newsletter * @param bool $newsletterProduct Users's subscribe to murena product newsletter * * @return \OCP\AppFramework\Http\DataResponse */ public function create(string $displayname = '', string $recoveryEmail = '', string $username = '', string $password = '', string $language = '', bool $newsletter_eos = false, bool $newsletter_product = false): DataResponse { public function create(string $displayname = '', string $recoveryEmail = '', string $username = '', string $password = '', string $language = '', bool $newsletterEos = false, bool $newsletterProduct = false): DataResponse { $response = new DataResponse(); Loading Loading @@ -137,14 +137,14 @@ class AccountController extends Controller { $this->userService->createNewDomainAlias($username, $userEmail); $this->userService->setTOS($username, true); $this->userService->setUserLanguage($username, $language); if ($newsletter_eos || $newsletter_product) { if ($newsletterEos || $newsletterProduct) { $list_ids = []; $newsletterListIds = $this->config->getSystemValue('newsletter_list_ids'); if ($newsletter_eos) { if ($newsletterEos) { $list_ids[] = $newsletterListIds['eos']; } if ($newsletter_product) { if ($newsletterProduct) { $list_ids[] = $newsletterListIds['product']; } Loading src/Signup.vue +4 −4 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ export default { captchaInput: '', email: '', accepttns: false, newsletter_eos: false, newsletter_product: false, newsletterEos: false, newsletterProduct: false, selectedLanguage: 'en', }, appName: APPLICATION_NAME, Loading Loading @@ -74,8 +74,8 @@ export default { password: this.formData.password, recoveryEmail: this.formData.email, language: this.formData.selectedLanguage, newsletter_eos: this.formData.newsletter_eos, newsletter_product: this.formData.newsletter_product, newsletterEos: this.formData.newsletterEos, newsletterProduct: this.formData.newsletterProduct, } this.submitForm(data) } Loading src/signup/RegistrationForm.vue +2 −2 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ <div class="control"> <span class="action-checkbox"> <input id="action-newsletter_eos" v-model="formData.newsletter_eos" v-model="formData.newsletterEos" type="checkbox" class="checkbox action-checkbox__checkbox focusable"> <label for="action-newsletter_eos" class="action-checkbox__label">{{ t(appName,'I want to receive news about /e/OS') }}</label> Loading @@ -139,7 +139,7 @@ <div class="control"> <span class="action-checkbox"> <input id="action-newsletter_product" v-model="formData.newsletter_product" v-model="formData.newsletterProduct" type="checkbox" class="checkbox action-checkbox__checkbox focusable"> <label for="action-newsletter_product" class="action-checkbox__label">{{ t(appName,'I want to receive news about Murena products and promotions') }}</label> Loading Loading
lib/Controller/AccountController.php +6 −6 Original line number Diff line number Diff line Loading @@ -91,12 +91,12 @@ class AccountController extends Controller { * @param string $username User's username * @param string $password User's password * @param string $language User's language preference * @param bool $newsletter_eos Users's subscribe to eos newsletter * @param bool $newsletter_product Users's subscribe to murena product newsletter * @param bool $newsletterEos Users's subscribe to eos newsletter * @param bool $newsletterProduct Users's subscribe to murena product newsletter * * @return \OCP\AppFramework\Http\DataResponse */ public function create(string $displayname = '', string $recoveryEmail = '', string $username = '', string $password = '', string $language = '', bool $newsletter_eos = false, bool $newsletter_product = false): DataResponse { public function create(string $displayname = '', string $recoveryEmail = '', string $username = '', string $password = '', string $language = '', bool $newsletterEos = false, bool $newsletterProduct = false): DataResponse { $response = new DataResponse(); Loading Loading @@ -137,14 +137,14 @@ class AccountController extends Controller { $this->userService->createNewDomainAlias($username, $userEmail); $this->userService->setTOS($username, true); $this->userService->setUserLanguage($username, $language); if ($newsletter_eos || $newsletter_product) { if ($newsletterEos || $newsletterProduct) { $list_ids = []; $newsletterListIds = $this->config->getSystemValue('newsletter_list_ids'); if ($newsletter_eos) { if ($newsletterEos) { $list_ids[] = $newsletterListIds['eos']; } if ($newsletter_product) { if ($newsletterProduct) { $list_ids[] = $newsletterListIds['product']; } Loading
src/Signup.vue +4 −4 Original line number Diff line number Diff line Loading @@ -40,8 +40,8 @@ export default { captchaInput: '', email: '', accepttns: false, newsletter_eos: false, newsletter_product: false, newsletterEos: false, newsletterProduct: false, selectedLanguage: 'en', }, appName: APPLICATION_NAME, Loading Loading @@ -74,8 +74,8 @@ export default { password: this.formData.password, recoveryEmail: this.formData.email, language: this.formData.selectedLanguage, newsletter_eos: this.formData.newsletter_eos, newsletter_product: this.formData.newsletter_product, newsletterEos: this.formData.newsletterEos, newsletterProduct: this.formData.newsletterProduct, } this.submitForm(data) } Loading
src/signup/RegistrationForm.vue +2 −2 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ <div class="control"> <span class="action-checkbox"> <input id="action-newsletter_eos" v-model="formData.newsletter_eos" v-model="formData.newsletterEos" type="checkbox" class="checkbox action-checkbox__checkbox focusable"> <label for="action-newsletter_eos" class="action-checkbox__label">{{ t(appName,'I want to receive news about /e/OS') }}</label> Loading @@ -139,7 +139,7 @@ <div class="control"> <span class="action-checkbox"> <input id="action-newsletter_product" v-model="formData.newsletter_product" v-model="formData.newsletterProduct" type="checkbox" class="checkbox action-checkbox__checkbox focusable"> <label for="action-newsletter_product" class="action-checkbox__label">{{ t(appName,'I want to receive news about Murena products and promotions') }}</label> Loading