mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-19 09:51:35 +02:00
Change HTTP code returned for routes rejected in reverse proxy setup
This commit is contained in:
@@ -136,7 +136,7 @@ class WebAuthnManageControllerTest extends FeatureTestCase
|
||||
{
|
||||
$response = $this->actingAs($this->user, 'reverse-proxy-guard')
|
||||
->json('GET', '/webauthn/credentials')
|
||||
->assertStatus(400);
|
||||
->assertStatus(405);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,7 +146,7 @@ class WebAuthnManageControllerTest extends FeatureTestCase
|
||||
{
|
||||
$response = $this->actingAs($this->user, 'reverse-proxy-guard')
|
||||
->json('PATCH', '/webauthn/credentials/fqsdfqsdf/name')
|
||||
->assertStatus(400);
|
||||
->assertStatus(405);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -156,7 +156,7 @@ class WebAuthnManageControllerTest extends FeatureTestCase
|
||||
{
|
||||
$response = $this->actingAs($this->user, 'reverse-proxy-guard')
|
||||
->json('DELETE', '/webauthn/credentials/dcnskldjnkljsrn')
|
||||
->assertStatus(400);
|
||||
->assertStatus(405);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user