Ensures that all calls to the members membership provider are done so explicitly with the membership provider alias - this decouples the need to have the umbraco membership provider declared as the default, we were doing both before.

This commit is contained in:
Shannon
2014-03-18 17:08:21 +11:00
parent 71de4dc7de
commit e2881e07d1
43 changed files with 969 additions and 706 deletions

View File

@@ -16,7 +16,8 @@ namespace Umbraco.Web.Controllers
[HttpPost]
public ActionResult HandleUpdateProfile([Bind(Prefix = "profileModel")] ProfileModel model)
{
if (Membership.Provider.IsUmbracoMembershipProvider() == false)
var provider = MembershipProviderExtensions.GetMembersMembershipProvider();
if (provider.IsUmbracoMembershipProvider() == false)
{
throw new NotSupportedException("Profile editing with the " + typeof(UmbProfileController) + " is not supported when not using the default Umbraco membership provider");
}