diff --git a/DotnetPlayground.Web/Startup.cs b/DotnetPlayground.Web/Startup.cs index 2480d702..0d5cce1b 100644 --- a/DotnetPlayground.Web/Startup.cs +++ b/DotnetPlayground.Web/Startup.cs @@ -104,7 +104,7 @@ static async Task Main(string[] args) .AddJsonFile($"appsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", optional: true) .AddEnvironmentVariables(); if (hostingContext.HostingEnvironment.IsDevelopment()) - config.AddUserSecrets(optional: true); + config.AddUserSecrets(optional: true, reloadOnChange: true); }) .ConfigureWebHost(webBuilder => { diff --git a/DotnetPlayground.Web/Views/Shared/_LoginPartial.cshtml b/DotnetPlayground.Web/Views/Shared/_LoginPartial.cshtml index 10076f11..db8f3b76 100644 --- a/DotnetPlayground.Web/Views/Shared/_LoginPartial.cshtml +++ b/DotnetPlayground.Web/Views/Shared/_LoginPartial.cshtml @@ -2,6 +2,8 @@ @using DotnetPlayground.Helpers @using Microsoft.AspNetCore.Identity + + @inject UserManager UserManager + \ No newline at end of file