Removed unnecessary TODO and code duplication
This commit is contained in:
@@ -61,7 +61,6 @@ namespace Umbraco.Web.Install.InstallSteps
|
||||
|
||||
_userService.Save(admin);
|
||||
|
||||
//TODO: This needs to be reintroduced, when users are compatible with ASP.NET Core Identity.
|
||||
var membershipUser = await _userManager.FindByIdAsync(Constants.Security.SuperUserId.ToString());
|
||||
if (membershipUser == null)
|
||||
{
|
||||
|
||||
@@ -24,7 +24,6 @@ namespace Umbraco.Extensions
|
||||
|
||||
services.TryAddScoped<IIpResolver, AspNetCoreIpResolver>();
|
||||
|
||||
services.AddIdentityCore<BackOfficeIdentityUser>();
|
||||
services.AddIdentityCore<BackOfficeIdentityUser>(options =>
|
||||
{
|
||||
options.User.RequireUniqueEmail = true;
|
||||
|
||||
Reference in New Issue
Block a user