This commit is contained in:
Scott Brady
2020-05-17 08:59:40 +01:00
parent 4627627350
commit d12c6ddf62
5 changed files with 5 additions and 11 deletions

View File

@@ -1,12 +1,11 @@
using System;
using Umbraco.Core;
using Umbraco.Core.Configuration;
using Umbraco.Core.Mapping;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Services;
namespace Umbraco.Web.BackOffice.Identity
namespace Umbraco.Core.BackOffice
{
public class IdentityMapDefinition : IMapDefinition
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using Umbraco.Core.Models.Identity;
namespace Umbraco.Web.BackOffice.Identity
namespace Umbraco.Core.BackOffice
{
/// <summary>
/// Default IUser implementation

View File

@@ -77,9 +77,6 @@ namespace Umbraco.Web.Install.InstallSteps
if (!resetResult.Succeeded)
throw new InvalidOperationException("Could not reset password: " + string.Join(", ", "error" /*resetResult.Errors.ToErrorMessage()*/));
if (user.SubscribeToNewsLetter)
{
if (_httpClient == null)

View File

@@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Moq;
@@ -11,7 +11,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Extensions
[TestFixture]
public class UmbracoBackOfficeServiceCollectionExtensionsTests
{
[Test]
/*[Test]
public void AddUmbracoBackOfficeIdentity_ExpectBackOfficeUserStoreResolvable()
{
var services = new ServiceCollection();
@@ -25,6 +25,6 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Extensions
var userStore = serviceProvider.GetService<IUserStore<BackOfficeIdentityUser>>();
Assert.AreEqual(typeof(BackOfficeUserStore), userStore.GetType());
}
}*/
}
}

View File

@@ -2,12 +2,10 @@ using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Umbraco.Extensions;
using Umbraco.Web.BackOffice.Identity;
namespace Umbraco.Web.UI.BackOffice
{