Skip to content

Commit

Permalink
fix: fix register request validate (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Apr 14, 2019
1 parent b5c277a commit f01a0e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Enhancements:

Fixes:

* Fix register request validate
* Fix relationship create

RELEASED VERSIONS:
Expand Down
2 changes: 2 additions & 0 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ protected function validator(array $data)
*/
protected function create(array $data)
{
$this->validator($data)->validate();

$first = ! Account::hasAny();
$account = Account::createDefault(
$data['first_name'],
Expand Down

0 comments on commit f01a0e8

Please sign in to comment.