1
2
3
4
5
6
7
8
9
10
11
12
13
14
  function doRegister($data, $form) {


      // Write the new member to the SilverStripe Database
      $member = new Member();
      $member->FirstName = $data['GivenName'];
      $member->Surname = $data['FamilyName'];
      $member->Email = $data['EMail']['Home'];
      $member->Password = $data['Password'];
      $member->CustomerID = $customerArray['CustomerID'];
      $member->write();
      return Director::redirect('please-verify-your-account/');

  }