[js][auth] implemented currentUser.updatePassword() method

This commit is contained in:
Salakar 2017-03-18 00:41:24 +00:00
parent ad52991ffc
commit 916224014d
1 changed files with 2 additions and 2 deletions

View File

@ -173,13 +173,13 @@ export default class User {
* @return {Promise}
*/
updatePassword(password: string): Promise<Object> {
return promisify('updateUserPassword', FirebaseAuth, 'auth/')(password);
return this._auth._interceptUserValue(FirebaseAuth.updatePassword(password));
}
/**
* Send verification email to current user.
*/
sendEmailVerification(): Promise<Object> {
return promisify('sendEmailVerification', FirebaseAuth, 'auth/')();
return this._auth._interceptUserValue(FirebaseAuth.sendEmailVerification());
}
}