代码之家  ›  专栏  ›  技术社区  ›  learningtech

在ResetPasswordAsync返回的结果上不触发断点

  •  0
  • learningtech  · 技术社区  · 4 年前

    我在想原因 UserManager.ResetPasswordAsync

    enter image description here

    但断点从来没有在1876年或1877年停止,它只在1875年和1881年停止。

    为什么不停在1876年或1877年?否则我怎么确定原因 result.Succeeded === false


    其他信息 在上图中,代码来自一个名为 CustomerController.cs 是名为

    [AllowAnonymous]
    [HttpPost]
    [Route("ResetPassword")]
    public async Task<object> ResetPassword([FromBody]CustomerViewModel model) {
       // .. some other code
       // insert the image above
    }
    

    此方法用作用户重置密码的API端点。这个 model.CodeResetPassword 在用户的重置密码工作流的上游,从一个名为 var code = await _userManager.GeneratePasswordResetTokenAsync(user);

    0 回复  |  直到 4 年前