From 341ee08281adb5983e3506e5564a137a0c446533 Mon Sep 17 00:00:00 2001 From: uwaa Date: Mon, 20 Jan 2025 22:52:23 +0000 Subject: [PATCH] remove email from registration flow --- src/components/registration/registration.js | 9 +---- src/components/registration/registration.vue | 39 -------------------- 2 files changed, 1 insertion(+), 47 deletions(-) diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 9778a2f3..bac4f798 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -8,13 +8,11 @@ const registration = { setup () { return { v$: useVuelidate() } }, data: () => ({ user: { - email: '', fullname: '', username: '', password: '', confirm: '', reason: '', - language: '' }, captcha: {} }), @@ -24,7 +22,6 @@ const registration = { validations () { return { user: { - email: { required: requiredIf(() => this.accountActivationRequired) }, username: { required }, fullname: { required }, password: { required }, @@ -32,8 +29,7 @@ const registration = { required, sameAs: sameAs(this.user.password) }, - reason: { required: requiredIf(() => this.accountApprovalRequired) }, - language: {} + reason: { required: requiredIf(() => this.accountApprovalRequired) } } } }, @@ -71,9 +67,6 @@ const registration = { this.user.captcha_solution = this.captcha.solution this.user.captcha_token = this.captcha.token this.user.captcha_answer_data = this.captcha.answer_data - if (this.user.language) { - this.user.language = localeService.internalToBackendLocale(this.user.language) - } this.v$.$touch() diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue index 9a88d68d..72e45d64 100644 --- a/src/components/registration/registration.vue +++ b/src/components/registration/registration.vue @@ -64,33 +64,6 @@ -
- - -
-
- -
-
-
- -
-