예제 #1
0
 public function showIframe2($request, $response)
 {
     $this->container->view->render($response, 'csrf-01/iframe2.html.twig', ['domain' => \Hackyou\Config::getHackmeDomain()]);
     return $response;
 }
예제 #2
0
 public function testGetHackmeDomain()
 {
     $this->assertEquals('tp-hackme.herokuapp.com', \Hackyou\Config::getHackmeDomain());
     putenv('HACKME_DOMAIN=subdomain.herokuapp.com');
     $this->assertEquals('subdomain.herokuapp.com', \Hackyou\Config::getHackmeDomain());
 }