diff --git a/frontend/src/components/forms/Register.vue b/frontend/src/components/forms/Register.vue index 71c7525..5d7676c 100644 --- a/frontend/src/components/forms/Register.vue +++ b/frontend/src/components/forms/Register.vue @@ -23,6 +23,16 @@ required counter > + + @@ -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