mirror of
https://git.rape.pet/ulith/amputoma-fe.git
synced 2025-01-31 08:33:22 +01:00
remove email from registration flow
This commit is contained in:
parent
5a4780c511
commit
341ee08281
2 changed files with 1 additions and 47 deletions
|
@ -8,13 +8,11 @@ const registration = {
|
||||||
setup () { return { v$: useVuelidate() } },
|
setup () { return { v$: useVuelidate() } },
|
||||||
data: () => ({
|
data: () => ({
|
||||||
user: {
|
user: {
|
||||||
email: '',
|
|
||||||
fullname: '',
|
fullname: '',
|
||||||
username: '',
|
username: '',
|
||||||
password: '',
|
password: '',
|
||||||
confirm: '',
|
confirm: '',
|
||||||
reason: '',
|
reason: '',
|
||||||
language: ''
|
|
||||||
},
|
},
|
||||||
captcha: {}
|
captcha: {}
|
||||||
}),
|
}),
|
||||||
|
@ -24,7 +22,6 @@ const registration = {
|
||||||
validations () {
|
validations () {
|
||||||
return {
|
return {
|
||||||
user: {
|
user: {
|
||||||
email: { required: requiredIf(() => this.accountActivationRequired) },
|
|
||||||
username: { required },
|
username: { required },
|
||||||
fullname: { required },
|
fullname: { required },
|
||||||
password: { required },
|
password: { required },
|
||||||
|
@ -32,8 +29,7 @@ const registration = {
|
||||||
required,
|
required,
|
||||||
sameAs: sameAs(this.user.password)
|
sameAs: sameAs(this.user.password)
|
||||||
},
|
},
|
||||||
reason: { required: requiredIf(() => this.accountApprovalRequired) },
|
reason: { required: requiredIf(() => this.accountApprovalRequired) }
|
||||||
language: {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -71,9 +67,6 @@ const registration = {
|
||||||
this.user.captcha_solution = this.captcha.solution
|
this.user.captcha_solution = this.captcha.solution
|
||||||
this.user.captcha_token = this.captcha.token
|
this.user.captcha_token = this.captcha.token
|
||||||
this.user.captcha_answer_data = this.captcha.answer_data
|
this.user.captcha_answer_data = this.captcha.answer_data
|
||||||
if (this.user.language) {
|
|
||||||
this.user.language = localeService.internalToBackendLocale(this.user.language)
|
|
||||||
}
|
|
||||||
|
|
||||||
this.v$.$touch()
|
this.v$.$touch()
|
||||||
|
|
||||||
|
|
|
@ -64,33 +64,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
class="form-group"
|
|
||||||
:class="{ 'form-group--error': v$.user.email.$error }"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="form--label"
|
|
||||||
for="email"
|
|
||||||
>{{ $t('registration.email') }}</label>
|
|
||||||
<input
|
|
||||||
id="email"
|
|
||||||
v-model="v$.user.email.$model"
|
|
||||||
:disabled="isPending"
|
|
||||||
class="form-control"
|
|
||||||
type="email"
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
v-if="v$.user.email.$dirty"
|
|
||||||
class="form-error"
|
|
||||||
>
|
|
||||||
<ul>
|
|
||||||
<li v-if="!v$.user.email.required">
|
|
||||||
<span>{{ $t('registration.validations.email_required') }}</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label
|
<label
|
||||||
class="form--label"
|
class="form--label"
|
||||||
|
@ -162,18 +135,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
class="form-group"
|
|
||||||
:class="{ 'form-group--error': v$.user.language.$error }"
|
|
||||||
>
|
|
||||||
<interface-language-switcher
|
|
||||||
for="email-language"
|
|
||||||
:prompt-text="$t('registration.email_language')"
|
|
||||||
:language="v$.user.language.$model"
|
|
||||||
:set-language="val => v$.user.language.$model = val"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="accountApprovalRequired"
|
v-if="accountApprovalRequired"
|
||||||
class="form-group"
|
class="form-group"
|
||||||
|
|
Loading…
Reference in a new issue