Sending user name while in users_login api

This commit is contained in:
Nikhil Kadam
2025-05-18 18:22:10 +05:30
parent d29f5f2825
commit c4ee705ba0

View File

@@ -674,6 +674,7 @@ class UsersController extends Controller
'status' => true,
'message' => 'Login successful (Local). Redirecting to Local dashboard...',
'user_id' => $user->id,
'name' => $user->first_name,
'email' => $email,
'access_token' => $token,
'dashboard_url' => url('/dashboard')
@@ -690,7 +691,7 @@ class UsersController extends Controller
// ✅ Return both responses
return response()->json([
'local' => $localResponse,
'thingsboard' => $thingsboardResponse
// 'thingsboard' => $thingsboardResponse
], 200);
}