I have the following defaultmembership provider in my web.config

```
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />

```

I am trying to update the **enablePasswordReset** from **false** to **true** programmatically but am struggling.. This is as far as I got!

```
ConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
var section = (MembershipSection)config.GetSection("system.web/membership");

var defaultProvider = section.DefaultProvider;
var providerSettings = section.Providers[defaultProvider];

// Now what?

```

Now I can't figure out how to get the attribute and update it? any hints / examples greatly appreciated.