Cleanup
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
using Umbraco.Core.Models.Identity;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Umbraco.Core.Models.Identity;
|
||||
|
||||
namespace Umbraco.Web.Models.Identity
|
||||
{
|
||||
internal class UserLoginInfoWrapper : IUserLoginInfo
|
||||
{
|
||||
private readonly Microsoft.AspNetCore.Identity.UserLoginInfo _info;
|
||||
private readonly UserLoginInfo _info;
|
||||
|
||||
public static IUserLoginInfo Wrap(Microsoft.AspNetCore.Identity.UserLoginInfo info) => new UserLoginInfoWrapper(info);
|
||||
public static IUserLoginInfo Wrap(UserLoginInfo info) => new UserLoginInfoWrapper(info);
|
||||
|
||||
private UserLoginInfoWrapper(Microsoft.AspNetCore.Identity.UserLoginInfo info)
|
||||
private UserLoginInfoWrapper(UserLoginInfo info)
|
||||
{
|
||||
_info = info;
|
||||
}
|
||||
|
||||
@@ -408,7 +408,6 @@ namespace Umbraco.Web.Security
|
||||
ThrowIfDisposed();
|
||||
if (user == null) throw new ArgumentNullException(nameof(user));
|
||||
|
||||
// TODO: SCOTT: Consider adding display name to IIdentityUserLogin
|
||||
var userLogin = user.Logins.SingleOrDefault(l => l.LoginProvider == loginProvider && l.ProviderKey == providerKey);
|
||||
if (userLogin != null) user.Logins.Remove(userLogin);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user