Skip to content

Commit

Permalink
Fix bug in reset password flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Apr 30, 2017
1 parent 5ab9042 commit 74b6697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-cognito.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
const cognitoUser = this._getCognitoUser(username, userPool);
return new Promise((resolve, reject) => {
cognitoUser.confirmPassword(code, password, {
onSuccess: (result) => resolve(result),
onSuccess: () => resolve('SUCCESS'),
onFailure: (err) => reject(err),
});
});
Expand Down

0 comments on commit 74b6697

Please sign in to comment.