]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
commit bug with getSalt
authorNicolas Lœuillet <nicolas@loeuillet.org>
Thu, 26 Feb 2015 14:00:28 +0000 (15:00 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 6 Mar 2015 20:09:15 +0000 (21:09 +0100)
src/Wallabag/CoreBundle/Controller/WallabagRestController.php

index a382caf757b61fbbd89de3adbe0bcc841dfe804d..81974371402fa98a7c3ae22fcadd3f9664d1f256 100644 (file)
@@ -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();