mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
commit bug with getSalt
This commit is contained in:
parent
0ca374e6a1
commit
6ee416a069
1 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue