fix: link user_id to user's id in user credentials

This commit is contained in:
FoskyM 2023-10-13 20:38:49 +08:00
parent fb3b2a6c6c
commit debfb5201e
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C

View file

@ -356,7 +356,10 @@ class Storage implements
*/ */
public function getUserDetails($username) public function getUserDetails($username)
{ {
return User::where('username', $username)->first(); $user = User::where('username', $username)->first();
$user->user_id = $user->id;
return $user;
} }
/** /**