This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from guillaume-roy/master
Implement changePassword feature
- Loading branch information
Showing
5 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,7 +264,23 @@ You can expect more login mechanisms to be added in the future. | |
}).then( | ||
function () { | ||
// called when password reset was successful, | ||
// you ccould now prompt the user to check his email | ||
// you could now prompt the user to check his email | ||
}, | ||
function (errorMessage) { | ||
console.log(errorMessage); | ||
} | ||
) | ||
``` | ||
|
||
#### Changing a password | ||
```js | ||
firebase.changePassword({ | ||
email: '[email protected]', | ||
oldPassword: 'myOldPassword', | ||
newPassword: 'myNewPassword' | ||
}).then( | ||
function () { | ||
// called when password change was successful, | ||
}, | ||
function (errorMessage) { | ||
console.log(errorMessage); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters