title: How can I customize the AccountController/Register User action to add data to custom fields?
body: <p>I think what I'm after doing is adding a couple of fields to aspnet_Users such as RealName and avatar for example, however, I want to insert values into these fields on user creation.</p>
  
  <p>I have changed the name of the action to Create as opposed to register as users are created via an Admin CP.</p>
  
  <p>I have assumed that this is the Action I need to alter in order to obtain what I am trying to achieve.</p>
  
  <pre><code>&lt;AcceptVerbs(HttpVerbs.Post)&gt; _
  Function Create(ByVal userName As String, ByVal email As String, ByVal password As String, ByVal confirmPassword As String) As ActionResult
  
      ViewData("Title") = "Register"
      ViewData("PasswordLength") = MembershipService.MinPasswordLength
  
      If ValidateRegistration(userName, email, password, confirmPassword) Then
          ' Attempt to register the user
          Dim createStatus As MembershipCreateStatus = MembershipService.CreateUser(userName, password, email)
  
          If createStatus = MembershipCreateStatus.Success Then
              FormsAuth.SignIn(userName, False)
              Return RedirectToAction("Index", "Home")
          Else
              ModelState.AddModelError("_FORM", ErrorCodeToString(createStatus))
          End If
      End If
  
      Return View()
  End Function
  </code></pre>
  
  <p>However, I'm not too sure how to go about adding new fields to the insert and I have convinced myself it can't be as easy as changing the <code>MembershipService.CreateUser(userName, password, email)</code> line to include the values of my new fields.</p>
  
  <p>Can someone point me in the right direction as to 1) if this is possible and how to go about it or 2) if this isn't possible or any other solutions as to go about it?</p>
  
  <p>Thanks in advance for any help.</p>