Update src/Umbraco.Web.Common/Install/CreateUnattendedUserNotificationHandler.cs

This commit is contained in:
Warren Buckley
2021-03-05 17:16:05 +00:00
committed by GitHub
parent e11079c568
commit 254d88e3c8

View File

@@ -73,7 +73,6 @@ namespace Umbraco.Cms.Web.Common.Install
// Change Password for the default user we ship out of the box
// Uses same approach as NewInstall Step
// TODO: usermanager why you no inject?!
using IServiceScope scope = _serviceScopeFactory.CreateScope();
IBackOfficeUserManager backOfficeUserManager = scope.ServiceProvider.GetRequiredService<IBackOfficeUserManager>();
BackOfficeIdentityUser membershipUser = await backOfficeUserManager.FindByIdAsync(Core.Constants.Security.SuperUserId.ToString());