Update RegisterController, store client ip during registration

This commit is contained in:
Daniel Supernault 2023-04-20 01:54:23 -06:00
parent 33e6cf26d2
commit d4c967de98
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 1 deletions

View file

@ -163,6 +163,7 @@ class RegisterController extends Controller
'username' => $data['username'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
'app_register_ip' => request()->ip()
]);
}

View file

@ -29,7 +29,7 @@ class User extends Authenticatable
* @var array
*/
protected $fillable = [
'name', 'username', 'email', 'password',
'name', 'username', 'email', 'password', 'app_register_ip'
];
/**