mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-27 01:20:34 +00:00
commit bug with getSalt
This commit is contained in:
parent
0ca374e6a1
commit
6ee416a069
|
@ -40,19 +40,15 @@ class WallabagRestController extends Controller
|
||||||
/**
|
/**
|
||||||
* Retrieve salt for a giver user.
|
* Retrieve salt for a giver user.
|
||||||
*
|
*
|
||||||
* @ApiDoc(
|
* @ApiDoc()
|
||||||
* parameters={
|
|
||||||
* {"name"="username", "dataType"="string", "required"=true, "description"="username"}
|
|
||||||
* }
|
|
||||||
* )
|
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getSaltAction(Request $request)
|
public function getSaltAction($username)
|
||||||
{
|
{
|
||||||
$user = $this
|
$user = $this
|
||||||
->getDoctrine()
|
->getDoctrine()
|
||||||
->getRepository('WallabagCoreBundle:User')
|
->getRepository('WallabagCoreBundle:User')
|
||||||
->findOneByUsername($request->query->get('username'));
|
->findOneByUsername($username);
|
||||||
|
|
||||||
if (is_null($user)) {
|
if (is_null($user)) {
|
||||||
throw $this->createNotFoundException();
|
throw $this->createNotFoundException();
|
||||||
|
|
Loading…
Reference in a new issue