Skip to content

Commit

Permalink
fix scemo registrazione utente
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Oct 29, 2023
1 parent 1b6b9bf commit cc8a898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ protected function validator(array $data)
*/
protected function create(array $data)
{
$gas = Gas::find($data['gas_id']);

$user = new User();
$user->gas_id = $data['gas_id'];
$user->member_since = date('Y-m-d', time());
Expand Down

0 comments on commit cc8a898

Please sign in to comment.