私は正常にユーザーにログインする機能があります。私が欲しいものPolymer firebase ..パスワードとメールでの認証
_login: function() {
var email = this.$.emailvalue.value;
var password = this.$.passwordvalue.value;
return this.$.authenticate.signInWithEmailAndPassword(email, password).then(function() {
// Sign-in successful.
//this._animateView(); **returns undefined**
}, function(error) {
// An error happened.
// // Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
console.log(errorMessage);
// this._animateErrorView(); **returns undefined**
});
},
は、エラーが発生した場合、ユーザーが正常にログインするとthis._animateErrorView()
時に機能this._animateView();
を呼び出すことです。
私は