Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e1f24b2 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

camelcase

parent 7b27f502
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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();
		
@@ -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'];
				}
			
+4 −4
Original line number Diff line number Diff line
@@ -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,
@@ -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)
			}
+2 −2
Original line number Diff line number Diff line
@@ -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>
@@ -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>