Password reset token provider in ASP.NET core - IUserTokenProvider not found

后端 未结 5 2325
时光说笑
时光说笑 2021-02-09 22:30

Hello,

I googled thoroughly but there is hundred examples from ASP.NET but nothing about ASP.NET Core.

In order to getting password reset work I need to registe

5条回答
  •  名媛妹妹
    2021-02-09 23:10

    Add .AddDefaultTokenProviders(); in ConfigureServices() method in startupclass

     `in public void ConfigureServices(IServiceCollection services)
        {
         services.AddIdentity()
                        .AddEntityFrameworkStores()
                        .AddDefaultTokenProviders();
        }
        `
    

提交回复
热议问题