From 6ee416a06963916ca8050e7711538d4e9463a2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 26 Feb 2015 15:00:28 +0100 Subject: commit bug with getSalt --- src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index a382caf7..81974371 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php @@ -40,19 +40,15 @@ class WallabagRestController extends Controller /** * Retrieve salt for a giver user. * - * @ApiDoc( - * parameters={ - * {"name"="username", "dataType"="string", "required"=true, "description"="username"} - * } - * ) + * @ApiDoc() * @return array */ - public function getSaltAction(Request $request) + public function getSaltAction($username) { $user = $this ->getDoctrine() ->getRepository('WallabagCoreBundle:User') - ->findOneByUsername($request->query->get('username')); + ->findOneByUsername($username); if (is_null($user)) { throw $this->createNotFoundException(); -- cgit v1.2.3