0

AngularJS의 Amazon WebService에서 Cognito로 사용자 관리를하고 있습니다.Cognito 사용자 AWS 잊어 버린 비밀번호 단계 오류

잊어 버린 비밀번호 단계에 오류가 있습니다. Error: callListeners emit emitEvent a [52]</d.prototype.runTo [52]</d.prototype.runTo/< a/< emitEvent/< callListeners emit emitEvent a [52]</d.prototype.runTo [52]</d.prototype.runTo/< a/< emitEvent/< callListeners f emit emitEvent a [52]</d.prototype.runTo [52]</d.prototype.runTo/< a/< emitEvent/< callListeners emit emitEvent a [52]</d.prototype.runTo [52]</d.prototype.runTo/< a/< emitEvent/< callListeners f c/< finishRequest handleRequest/<

내가 알아낼 수없는 이유를 작동하지 않는 그 :

내가 AWS의 자식에 주어진 exemple에 수행하는 방법을 보았다 (https://github.com/aws/amazon-cognito-identity-js)

하지만 난 항상 내 콘솔에서이 메시지를 가지고 :

내가 내 사용자 암호 다시 설정하는 방법입니다

AuthService.forgetPassword = function(username) { 
      var userData = { 
       Username : username, 
       Pool : userPool 
      }; 
      cognitoUser = new AWSCognito.CognitoIdentityServiceProvider.CognitoUser(userData); 
      cognitoUser = 
       cognitoUser.forgotPassword({ 
        onSuccess: function (result) { 
         console.log('call result: ' + result); 
        }, 
        onFailure: function(err) { 
         alert(err); 
        }, 
        inputVerificationCode() { 
        var verificationCode = prompt('Please input verification code ' ,''); 
        var newPassword = prompt('Enter new password ' ,'');    
       cognitoUser.confirmPassword(verificationCode, newPassword, this); 
        } 
       }); 
      }; 

참고 그 verificationCodenewPassword getted 잘 설정되어 있습니다. 누구나 할 수있는 방법을 알고 있습니까?

답변

관련 문제