PW confirmation
This commit is contained in:
parent
939cc8d504
commit
f39f80e64e
1 changed files with 21 additions and 1 deletions
|
@ -23,6 +23,16 @@
|
||||||
required
|
required
|
||||||
counter
|
counter
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
|
||||||
|
<v-text-field
|
||||||
|
v-if="!showPassword"
|
||||||
|
v-model="passwordConfirm"
|
||||||
|
:rules="passwordConfirmRules"
|
||||||
|
:type="showPassword ? 'text' : 'password'"
|
||||||
|
label="Confirm Password"
|
||||||
|
required
|
||||||
|
counter
|
||||||
|
></v-text-field>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</FormDialog>
|
</FormDialog>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,9 +53,19 @@ export default {
|
||||||
|
|
||||||
password: '',
|
password: '',
|
||||||
showPassword: false,
|
showPassword: false,
|
||||||
passwordRules: [v => !!v || 'Password is required']
|
passwordRules: [v => !!v || 'Password is required'],
|
||||||
|
|
||||||
|
passwordConfirm: '',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
passwordConfirmRules() {
|
||||||
|
return [
|
||||||
|
() => this.password === this.passwordConfirm || "Passwords don't match"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
confirm() {
|
confirm() {
|
||||||
window.pkgs.axios
|
window.pkgs.axios
|
||||||
|
|
Reference in a new issue