about summary refs log tree commit diff stats
path: root/tests/RouterTest.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-21 12:06:53 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-21 12:06:53 +0300
commit7edf66a0b06a9764084ef426e53eaa28d7bd4ade (patch)
tree73ab3c28aba500bf74870c9b38e019ac3efde6b9 /tests/RouterTest.php
parentcae23c5e14a0ed4d80e9edde351cb4066e3e350c (diff)
downloadthe-epube-7edf66a0b06a9764084ef426e53eaa28d7bd4ade.tar.gz
the-epube-7edf66a0b06a9764084ef426e53eaa28d7bd4ade.tar.xz
fix validate_session() not being used in AuthRequired check
Diffstat (limited to 'tests/RouterTest.php')
-rw-r--r--tests/RouterTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/RouterTest.php b/tests/RouterTest.php
index 1c2197c..58887c3 100644
--- a/tests/RouterTest.php
+++ b/tests/RouterTest.php
@@ -132,6 +132,7 @@ final class RouterTest extends TestCase
 		};
 		$this->router->addRoute('protected', $handler);
 		$_SESSION['owner'] = 'testuser';
+		$_SESSION['pass_hash'] = 'dummy';
 
 		$response = $this->router->dispatchResponse('protected');