Moves logic for checking if the current user (based on the current thread) is an admin and in which case can reset the password to an extension method

This commit is contained in:
Shannon
2017-04-18 20:09:27 +10:00
parent b1c6276a67
commit 46dd86c745
8 changed files with 90 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ namespace Umbraco.Web.Editors
public IDictionary<string, object> GetMembershipProviderConfig()
{
var provider = Core.Security.MembershipProviderExtensions.GetUsersMembershipProvider();
return provider.GetConfiguration();
return provider.GetConfiguration(Services.UserService);
}
/// <summary>