Could not find the code i need in ionic 4 or 3

hello
I am trying to get the new password that already updated in authentication
to update the password that in the real-time database so I can get the same updated password in both auth and database
this is the code that i use to reset my password

onsubmitlogin(email){
console.log(email);

firebase.auth().sendPasswordResetEmail(email.toString()).then(ser => {

this.presentAlert(‘Success’, ‘please check your email!’)
console.log(“Success”);
this.router.navigate([’/login’])
})
.catch(ser => {
this.presentAlert(‘filed’, ‘please write your correct email!’)
console.log(“error”);
});
}