From 640d8ce30e1ef36aceab6282b48f0c7f07228932 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 2 May 2024 06:00:11 -0400 Subject: [PATCH] login data --- app/Controllers/DigiFiAuth.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/app/Controllers/DigiFiAuth.php b/app/Controllers/DigiFiAuth.php index c9a7da2..bda1729 100644 --- a/app/Controllers/DigiFiAuth.php +++ b/app/Controllers/DigiFiAuth.php @@ -42,11 +42,18 @@ class DigiFiAuth extends BaseController $token = JWT::encode($payload, $key, 'HS256'); $response = [ - 'message' => 'Login was successful', - 'call_return' => '100', - 'name' => 'didiFy Admin', - 'username' => $data['username'], - 'token' => $token + 'message' => 'Login was successful', + 'call_return' => '100', + 'username' => $data['username'], + 'token' => $token, + "id" => 1, + "first_name" => "Biboqwe", + "last_name" => "Fotoohi", + "email" => "demo@demo.com", + "email_verified_at" => "2023-07-12T13:39:04.000000Z", + "created_at" => "2023-07-12T13:39:04.000000Z", + "updated_at" => "2024-04-01T21:01:31.000000Z", + "api_token" => $token ]; return $this->respond($response, 200);