yt-devmeetup-vue-firebase
yt-devmeetup-vue-firebase copied to clipboard
Account creation is possible with non-matching passwords
I'd suggest doing a check inside of the onSignUp to make sure that the user has inputted two matching passwords. Otherwise, they will only be warned if passwords don't match, but they won't be prevented from submitting the form.
I implemented the following in my code:
if (!this.comparePasswords) { this.$store.dispatch('signUserUp', { email: this.email, password: this.password }); } else { console.log('Passwords did not match'); return; }