Private
Public Access
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e70cb57176 | ||
|
|
db54899ed4 |
@@ -1,6 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
## v2026.3.1-0 (2026-08-18)
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
* Add backup/restore scripts #15. [Lang]
|
||||||
|
|
||||||
|
* Fix the changing local url names from legacy .local - & change the minio default port #15. [Lang]
|
||||||
|
|
||||||
|
|
||||||
## v2026.3.0-0 (2026-07-27)
|
## v2026.3.0-0 (2026-07-27)
|
||||||
|
|
||||||
### New
|
### New
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
|||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpKernel\Attribute\AsController;
|
use Symfony\Component\HttpKernel\Attribute\AsController;
|
||||||
use Symfony\Component\Mailer\MailerInterface;
|
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -85,8 +84,11 @@ class GameController extends AbstractController
|
|||||||
public function contact(
|
public function contact(
|
||||||
Request $request,
|
Request $request,
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
MailerInterface $mailer,
|
|
||||||
): Response {
|
): Response {
|
||||||
|
// Keep the contact form implementation available, but disable public
|
||||||
|
// access while automated abuse protection is insufficient.
|
||||||
|
throw $this->createNotFoundException();
|
||||||
|
|
||||||
$contactMessage = new ContactMessage();
|
$contactMessage = new ContactMessage();
|
||||||
$form = $this->createForm(ContactFormType::class, $contactMessage);
|
$form = $this->createForm(ContactFormType::class, $contactMessage);
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|||||||
@@ -260,7 +260,6 @@
|
|||||||
<li><a href="{{ path('MineSeekerBundle_rules') }}">Game Rules</a></li>
|
<li><a href="{{ path('MineSeekerBundle_rules') }}">Game Rules</a></li>
|
||||||
<li><a href="{{ path('MineSeekerBundle_terms') }}">Terms of Use</a></li>
|
<li><a href="{{ path('MineSeekerBundle_terms') }}">Terms of Use</a></li>
|
||||||
<li><a href="{{ path('MineSeekerBundle_privacy') }}">Privacy Policy</a></li>
|
<li><a href="{{ path('MineSeekerBundle_privacy') }}">Privacy Policy</a></li>
|
||||||
<li><a href="{{ path('MineSeekerBundle_contact') }}">Contact</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -89,14 +89,12 @@ class GameControllerTest extends WebTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[Test]
|
#[Test]
|
||||||
#[TestDox('Contact page loads successfully with form')]
|
#[TestDox('Contact page is not publicly accessible')]
|
||||||
public function contactPageLoadsSuccessfully(): void
|
public function contactPageIsNotPubliclyAccessible(): void
|
||||||
{
|
{
|
||||||
$crawler = $this->client->request('GET', '/contact');
|
$crawler = $this->client->request('GET', '/contact');
|
||||||
|
|
||||||
self::assertResponseStatusCodeSame(Response::HTTP_OK);
|
self::assertResponseStatusCodeSame(Response::HTTP_NOT_FOUND);
|
||||||
self::assertSelectorExists('form');
|
|
||||||
self::assertSelectorExists('button[type="submit"]');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Test]
|
#[Test]
|
||||||
|
|||||||
Reference in New Issue
Block a user