chore: Remove confirm password field from the account signup step (#4976)
This commit is contained in:
@@ -57,19 +57,6 @@
|
|||||||
:error="passwordErrorText"
|
:error="passwordErrorText"
|
||||||
@blur="$v.credentials.password.$touch"
|
@blur="$v.credentials.password.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
|
||||||
v-model.trim="credentials.confirmPassword"
|
|
||||||
type="password"
|
|
||||||
:class="{ error: $v.credentials.confirmPassword.$error }"
|
|
||||||
:label="$t('SET_NEW_PASSWORD.CONFIRM_PASSWORD.LABEL')"
|
|
||||||
:placeholder="$t('SET_NEW_PASSWORD.CONFIRM_PASSWORD.PLACEHOLDER')"
|
|
||||||
:error="
|
|
||||||
$v.credentials.confirmPassword.$error
|
|
||||||
? $t('SET_NEW_PASSWORD.CONFIRM_PASSWORD.ERROR')
|
|
||||||
: ''
|
|
||||||
"
|
|
||||||
@blur="$v.credentials.confirmPassword.$touch"
|
|
||||||
/>
|
|
||||||
<div v-if="globalConfig.hCaptchaSiteKey" class="h-captcha--box">
|
<div v-if="globalConfig.hCaptchaSiteKey" class="h-captcha--box">
|
||||||
<vue-hcaptcha
|
<vue-hcaptcha
|
||||||
ref="hCaptcha"
|
ref="hCaptcha"
|
||||||
@@ -129,7 +116,6 @@ export default {
|
|||||||
fullName: '',
|
fullName: '',
|
||||||
email: '',
|
email: '',
|
||||||
password: '',
|
password: '',
|
||||||
confirmPassword: '',
|
|
||||||
hCaptchaClientResponse: '',
|
hCaptchaClientResponse: '',
|
||||||
},
|
},
|
||||||
didCaptchaReset: false,
|
didCaptchaReset: false,
|
||||||
@@ -156,15 +142,6 @@ export default {
|
|||||||
isValidPassword,
|
isValidPassword,
|
||||||
minLength: minLength(6),
|
minLength: minLength(6),
|
||||||
},
|
},
|
||||||
confirmPassword: {
|
|
||||||
required,
|
|
||||||
isEqPassword(value) {
|
|
||||||
if (value !== this.credentials.password) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user