Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cognitoUser.forgotPassword({
- onSuccess: function (result) {
- console.log('call result: ' + result);
- //Show login screen
- },
- onFailure: function(err) {
- alert(err);
- },
- inputVerificationCode: function() {
- var verificationCode = prompt('Enter the code from email' ,'');
- var newPassword = prompt('Please enter new password ' ,'');
- cognitoUser.confirmPassword(verificationCode, newPassword, this);
- }
- });
Add Comment
Please, Sign In to add comment