From debfb5201e0b235e93ed6ada4238acf0873a4699 Mon Sep 17 00:00:00 2001 From: FoskyM Date: Fri, 13 Oct 2023 20:38:49 +0800 Subject: [PATCH] fix: link user_id to user's id in user credentials --- src/Storage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Storage.php b/src/Storage.php index c5c26c9..58ad6a9 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -356,7 +356,10 @@ class Storage implements */ public function getUserDetails($username) { - return User::where('username', $username)->first(); + $user = User::where('username', $username)->first(); + $user->user_id = $user->id; + + return $user; } /**