chore: Remove confirm password field from the account signup step (#4976)

This commit is contained in:
Pranav Raj S 2022-07-06 12:26:26 +07:00 committed by GitHub
parent b86638faac
commit 2a899a633a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,19 +57,6 @@
:error="passwordErrorText"
@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">
<vue-hcaptcha
ref="hCaptcha"
@ -129,7 +116,6 @@ export default {
fullName: '',
email: '',
password: '',
confirmPassword: '',
hCaptchaClientResponse: '',
},
didCaptchaReset: false,
@ -156,15 +142,6 @@ export default {
isValidPassword,
minLength: minLength(6),
},
confirmPassword: {
required,
isEqPassword(value) {
if (value !== this.credentials.password) {
return false;
}
return true;
},
},
},
},
computed: {