【问题标题】:ChangeEmailAsync "invalid token" in asp.net Core IdentityASP.NET Core Identity 中的 ChangeEmailAsync “无效令牌”
【发布时间】:2020-09-01 22:04:01
【问题描述】:

我在开发应用程序时遇到了这个问题,但没有发现任何相关问题。

我使用的是 asp.net Core 3.1,win 10。

【问题讨论】:

    标签: asp.net-core asp.net-core-identity


    【解决方案1】:

    在“ConfirmEmailChange.cshtml.cs”中进行以下更改:

    // code = Encoding.UTF8.GetString(WebEncoders.Base64UrlDecode(code)); // DELETE THIS LINE
    var result = await _userManager.ChangeEmailAsync(user, email, code);
    

    这解决了问题。

    【讨论】:

      猜你喜欢
      • 2020-12-15
      • 2014-07-12
      • 2016-12-11
      • 2015-05-07
      • 2014-10-13
      • 1970-01-01
      • 2016-05-03
      • 2015-04-28
      • 2017-09-10
      相关资源
      最近更新 更多