yt-devmeetup-vue-firebase icon indicating copy to clipboard operation
yt-devmeetup-vue-firebase copied to clipboard

Account creation is possible with non-matching passwords

Open pojdrovic opened this issue 6 years ago • 0 comments

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; }

pojdrovic avatar Oct 01 '18 20:10 pojdrovic