Skip to content

Commit

Permalink
Merge pull request #229 from michalsn/filter_data_on_register
Browse files Browse the repository at this point in the history
Filter post data on registration
  • Loading branch information
lonnieezell authored May 12, 2020
2 parents e5643f0 + 6d09e28 commit bbfb03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public function attemptRegister()
}

// Save the user
$user = new User($this->request->getPost());
$allowedPostFields = array_merge(['password'], $this->config->validFields, $this->config->personalFields);
$user = new User($this->request->getPost($allowedPostFields));

$this->config->requireActivation !== false ? $user->generateActivateHash() : $user->activate();

Expand Down

0 comments on commit bbfb03f

Please sign in to comment.