Skip to content

Commit 7412b77

Browse files
committed
fix: #146 auth failed without gw_id
1 parent 4efab8a commit 7412b77

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

app/Http/Controllers/API/AuthController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class AuthController extends Controller
3232
public function index(Request $request)
3333
{
3434
$validator = Validator::make($request->all(), [
35-
'gw_id' => 'required|string',
3635
'token' => 'required|string',
3736
'stage' => 'required|string|in:login,logout,counters',
3837
'incoming' => 'required_if:stage,counters|integer',

tests/Feature/API/AuthControllerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function testLoginSuccess()
3333
$params = [
3434
'stage' => 'login',
3535
'token' => $this->grantToken(),
36-
'gw_id' => 'D4EE073700C2',
3736
];
3837
$response = $this->call('GET', '/auth', $params);
3938

@@ -46,7 +45,6 @@ public function testLoginWithBadToken()
4645
$params = [
4746
'stage' => 'login',
4847
'token' => 'thisIsABadToken',
49-
'gw_id' => 'D4EE073700C2',
5048
];
5149
$response = $this->call('GET', '/auth', $params);
5250

@@ -59,7 +57,6 @@ public function testCount()
5957
$params = [
6058
'stage' => 'counters',
6159
'token' => $this->grantToken(),
62-
'gw_id' => 'D4EE073700C2',
6360
'incoming' => rand(1, 999),
6461
'outgoing' => rand(1, 999),
6562
'ip' => fake()->ipv4(),

0 commit comments

Comments
 (0)