I have a POST action that looks like this:
public ActionResult Create([Bind(Include="userrole,credentials.emailAddress,credentials.password")]User u, string confirmPassword, bool agreeToTerms)
I'm using the default model binder and credentials is a property on my User object. Credentials has two fields (emailAddress & password). If I remove the Whitelist, the credentials object gets bound and everything works as expected. However, if I provide that whitelist, userrole gets bound but the email and password on the complex property does not. I checked the Form values and they care coming across as I have them listed and they match my object.
Am I missing something?