@@ -20,10 +20,10 @@ |
||
20 | 20 | |
21 | 21 | $this->container->get('view')->getEnvironment()->addGlobal('csrf', [ |
22 | 22 | 'field' => ' |
23 | - <input type="hidden" name="'. $this->container->get('csrf')->getTokenNameKey() .'" |
|
24 | - value="'. $this->container->get('csrf')->getTokenName() .'"> |
|
25 | - <input type="hidden" name="'. $this->container->get('csrf')->getTokenValueKey() .'" |
|
26 | - value="'. $this->container->get('csrf')->getTokenValue() .'"> |
|
23 | + <input type="hidden" name="'. $this->container->get('csrf')->getTokenNameKey() . '" |
|
24 | + value="'. $this->container->get('csrf')->getTokenName() . '"> |
|
25 | + <input type="hidden" name="'. $this->container->get('csrf')->getTokenValueKey() . '" |
|
26 | + value="'. $this->container->get('csrf')->getTokenValue() . '"> |
|
27 | 27 | ', |
28 | 28 | ]); |
29 | 29 |
@@ -22,6 +22,6 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | $response = $handler->handle($request); |
25 | - return $response; |
|
25 | + return $response; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | \ No newline at end of file |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public function __invoke(Request $request, RequestHandler $handler): Response |
19 | 19 | { |
20 | - if($this->container->get('auth')->check()) { |
|
20 | + if ($this->container->get('auth')->check()) { |
|
21 | 21 | return $response->withRedirect($this->container->get('router')->urlFor('home')); |
22 | 22 | } |
23 | 23 |