Sending user name while in users_login api
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user