From 4efb7f64e67355166e1aa2cd880158f1be53b6b9 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 31 Mar 2023 17:25:47 +0200 Subject: [PATCH] Fix all in one admin login --- src/bundles/Elsa.AllInOne.Web/Program.cs | 1 + src/bundles/Elsa.AllInOne.Web/appsettings.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundles/Elsa.AllInOne.Web/Program.cs b/src/bundles/Elsa.AllInOne.Web/Program.cs index 88f38cca5..e54f19d99 100644 --- a/src/bundles/Elsa.AllInOne.Web/Program.cs +++ b/src/bundles/Elsa.AllInOne.Web/Program.cs @@ -25,6 +25,7 @@ services { identity.IdentityOptions = options => identitySection.Bind(options); identity.TokenOptions = options => identityTokenSection.Bind(options); + identity.UseAdminUserProvider(); }) .UseDefaultAuthentication() .UseWorkflowManagement(management => management.UseEntityFrameworkCore(ef => ef.UseSqlite(sqliteConnectionString))) diff --git a/src/bundles/Elsa.AllInOne.Web/appsettings.json b/src/bundles/Elsa.AllInOne.Web/appsettings.json index 302283fcf..2b88e1078 100644 --- a/src/bundles/Elsa.AllInOne.Web/appsettings.json +++ b/src/bundles/Elsa.AllInOne.Web/appsettings.json @@ -14,7 +14,6 @@ "BasePath": "" }, "Identity": { - "CreateDefaultAdmin": true, "Tokens": { "SigningKey": "secret-signing-key" }