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
|
||||
counter
|
||||
></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>
|
||||
</FormDialog>
|
||||
</template>
|
||||
|
@ -43,9 +53,19 @@ export default {
|
|||
|
||||
password: '',
|
||||
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: {
|
||||
confirm() {
|
||||
window.pkgs.axios
|
||||
|
|
Reference in a new issue