Skip to content

Commit

Permalink
Update Startup.cs
Browse files Browse the repository at this point in the history
Updated the ConfigureServices method to solve the issue dotnet#6632
  • Loading branch information
bcisnero authored Jun 11, 2018
1 parent 3fc9741 commit 93056cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ public void ConfigureServices(IServiceCollection services)
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

services.AddIdentity<ApplicationUser, IdentityRole>(config =>
services.AddDefaultIdentity<ApplicationUser, IdentityRole>(config =>
{
config.SignIn.RequireConfirmedEmail = true;
})
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();

services.AddMvc();

// Add application services.
services.AddTransient<IEmailSender, AuthMessageSender>();
services.AddTransient<ISmsSender, AuthMessageSender>();
services.AddSingleton<IEmailSender, EmailSender>();

services.Configure<AuthMessageSenderOptions>(Configuration);
}
Expand Down

0 comments on commit 93056cf

Please sign in to comment.