]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/SecurityController.php
Add some tests
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / SecurityController.php
index 5007307afcafa26dbab50ec6082e79036a5314ca..fe511db5ce6100a853fb881e26c54548e4bb7782 100644 (file)
@@ -103,7 +103,7 @@ class SecurityController extends Controller
         $user = $this->getDoctrine()->getRepository('WallabagCoreBundle:User')->findOneByConfirmationToken($token);
 
         if (null === $user) {
-            $this->createNotFoundException(sprintf('No user found with token "%s"', $token));
+            throw $this->createNotFoundException(sprintf('No user found with token "%s"', $token));
         }
 
         $form = $this->createForm(new ResetPasswordType());