From d4c967de984a349ab2f5d6f3d89ac379e66f6cbf Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 20 Apr 2023 01:54:23 -0600 Subject: [PATCH 1/2] Update RegisterController, store client ip during registration --- app/Http/Controllers/Auth/RegisterController.php | 1 + app/User.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 58c7daae..b4e45934 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -163,6 +163,7 @@ class RegisterController extends Controller 'username' => $data['username'], 'email' => $data['email'], 'password' => Hash::make($data['password']), + 'app_register_ip' => request()->ip() ]); } diff --git a/app/User.php b/app/User.php index 6430eac0..980548d6 100644 --- a/app/User.php +++ b/app/User.php @@ -29,7 +29,7 @@ class User extends Authenticatable * @var array */ protected $fillable = [ - 'name', 'username', 'email', 'password', + 'name', 'username', 'email', 'password', 'app_register_ip' ]; /** From 183bfb916a94638bdfb47d015a2bed29f7d851bb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 20 Apr 2023 01:55:31 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 188eb9c7..3e252e68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ - Update Privacy Settings, add Directory setting ([634c15e4](https://github.com/pixelfed/pixelfed/commit/634c15e4)) - Update site config ([6d59dc8e](https://github.com/pixelfed/pixelfed/commit/6d59dc8e)) - Update db:raw queries to support laravel v10 ([849e5103](https://github.com/pixelfed/pixelfed/commit/849e5103)) +- Update RegisterController, store client ip during registration ([d4c967de](https://github.com/pixelfed/pixelfed/commit/d4c967de)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.5 (2023-03-25)](https://github.com/pixelfed/pixelfed/compare/v0.11.4...v0.11.5)