diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/front/controller/admin/ShaarliAdminController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/front/controller/admin/ShaarliAdminController.php b/application/front/controller/admin/ShaarliAdminController.php index 3385006c..3bc5bb6b 100644 --- a/application/front/controller/admin/ShaarliAdminController.php +++ b/application/front/controller/admin/ShaarliAdminController.php | |||
@@ -34,11 +34,13 @@ abstract class ShaarliAdminController extends ShaarliVisitorController | |||
34 | /** | 34 | /** |
35 | * Any persistent action to the config or data store must check the XSRF token validity. | 35 | * Any persistent action to the config or data store must check the XSRF token validity. |
36 | */ | 36 | */ |
37 | protected function checkToken(Request $request): void | 37 | protected function checkToken(Request $request): bool |
38 | { | 38 | { |
39 | if (!$this->container->sessionManager->checkToken($request->getParam('token'))) { | 39 | if (!$this->container->sessionManager->checkToken($request->getParam('token'))) { |
40 | throw new WrongTokenException(); | 40 | throw new WrongTokenException(); |
41 | } | 41 | } |
42 | |||
43 | return true; | ||
42 | } | 44 | } |
43 | 45 | ||
44 | /** | 46 | /** |