Angular 电文:";由于错误AccessDeniedException,后确认调用失败。”;
当我试图编写一个用户密码重置函数时 : 我使用Angular 10和Cognito来管理用户 下面是我要调用的代码:Angular 电文:";由于错误AccessDeniedException,后确认调用失败。”;,angular,amazon-web-services,amazon-cognito,Angular,Amazon Web Services,Amazon Cognito,当我试图编写一个用户密码重置函数时 : 我使用Angular 10和Cognito来管理用户 下面是我要调用的代码: async ConfirmResetPass(): Promise<void> { const Username = this.email; const code = this.resetPasswordForm.controls['confirmCode'].value; const password = this.resetPass
async ConfirmResetPass(): Promise<void> {
const Username = this.email;
const code = this.resetPasswordForm.controls['confirmCode'].value;
const password = this.resetPasswordForm.controls['password'].value;
Auth.forgotPasswordSubmit(Username, code, password)
.then((data: any) => {
if (data) {
this._router.navigate(['auth/sign-in']);
this._notification.show(`SUCCESS!`);
}
})
.catch((e) => {
this._notification.show(`error: ${e.message}`);
});}
async ConfirmResetPass():承诺{
const Username=this.email;
const code=this.resetPasswordForm.controls['confirmCode'].value;
const password=this.resetPasswordForm.controls['password'].value;
授权放弃密码提交(用户名、代码、密码)
。然后((数据:任意)=>{
如果(数据){
此.u路由器。导航(['auth/sign-in']);
this.\u notification.show(`SUCCESS!`);
}
})
.catch((e)=>{
这个.u notification.show(`error:${e.message}`);
});}
我尝试删除Lambda中的所有函数,但仍然得到错误
有人知道我为什么会出现这个错误吗?这是为了获得lambda的许可。请从你这边检查
这是为了获得lambda的许可。请从你这边检查
看起来像是后端或第三方软件包的错误..Tuyen,你有允许Cognito执行lambda的权限吗?@MikeOne软件包仍然正常运行@我不知道!我如何找到它?看起来像是后端或第三方软件包的错误..Tuyen,你有允许Cognito执行lambda的权限吗?@MikeOne软件包仍然正常运行@我不知道!我怎样才能找到它?
async ConfirmResetPass(): Promise<void> {
const Username = this.email;
const code = this.resetPasswordForm.controls['confirmCode'].value;
const password = this.resetPasswordForm.controls['password'].value;
Auth.forgotPasswordSubmit(Username, code, password)
.then((data: any) => {
if (data) {
this._router.navigate(['auth/sign-in']);
this._notification.show(`SUCCESS!`);
}
})
.catch((e) => {
this._notification.show(`error: ${e.message}`);
});}