]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Create a client when creating a user using the api
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 7 Jun 2017 21:23:28 +0000 (23:23 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 7 Jun 2017 21:23:28 +0000 (23:23 +0200)
commit0c00e5251671c3648eabb8888271c09137ad902d
tree2fe5de8701fa80ea9481e4098203b95d787ce576
parent7bb3aa31776ffce2735a3b16f6ad80bb17946d4d
Create a client when creating a user using the api

While creating a new user using the API, we also create a new client for the current user.
So the app which just create the user can use its newly created client to configure the app.

That new client is only return after creating the user.
When calling the endpoint /api/user to get user information, the new client information won’t be return.
src/Wallabag/ApiBundle/Controller/UserRestController.php
src/Wallabag/ApiBundle/Entity/Client.php
src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig
src/Wallabag/UserBundle/Entity/User.php
tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php