Skip to content

Commit

Permalink
Update RegisterController, store client ip during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Apr 20, 2023
1 parent 33e6cf2 commit d4c967d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/Auth/RegisterController.php
Expand Up @@ -163,6 +163,7 @@ protected function create(array $data)
'username' => $data['username'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
'app_register_ip' => request()->ip()
]);
}

Expand Down
2 changes: 1 addition & 1 deletion app/User.php
Expand Up @@ -29,7 +29,7 @@ class User extends Authenticatable
* @var array
*/
protected $fillable = [
'name', 'username', 'email', 'password',
'name', 'username', 'email', 'password', 'app_register_ip'
];

/**
Expand Down

0 comments on commit d4c967d

Please sign in to comment.