login data

This commit is contained in:
CHIEFSOFT\ameye
2024-05-02 06:00:11 -04:00
parent 74ee0d3b04
commit 640d8ce30e
+12 -5
View File
@@ -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);