1👍
hey you can if the email id is with qoutes or not
you can check that in inspect network
- [Vuejs]-How to dynamically add IDs in checkboxes with vue?
- [Vuejs]-Vue component/element creating while method is working
0👍
Fixed it with the following code:
<script>
import firebase from 'firebase';
export default {
name: 'login',
data() {
return {
email: '',
password: ''
}
},
methods: {
login: function() {
firebase.auth().signInWithEmailAndPassword(this.email, this.password).then(
(user) => {
this.$router.replace('home')
},
(err) => {
alert('Oops. ' + err.message)
}
);
}
}
}
</script>
Source:stackexchange.com