📅  最后修改于: 2022-03-11 14:58:52.847000             🧑  作者: Mango
var user = firebase.auth().currentUser;
if (user.password == state.password) {
user.updatePassword(state.password).then(function() {
// Update successful.
}).catch(function(error) {
// An error happened.
});
}