aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/DeveloperController.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-15 22:18:45 +0100
committerGitHub <noreply@github.com>2016-12-15 22:18:45 +0100
commit24becc9717423748e6ef06c6cf1c499435af66b9 (patch)
tree9d6feb77e78d8318ebccc807356ff2d414892486 /src/Wallabag/ApiBundle/Controller/DeveloperController.php
parent15cc1838501955638f3ac6e0fb3235bb6ac4e26c (diff)
parent6ad8aabb83581fdc978d0cea81be8e776a3b7198 (diff)
downloadwallabag-24becc9717423748e6ef06c6cf1c499435af66b9.tar.gz
wallabag-24becc9717423748e6ef06c6cf1c499435af66b9.tar.zst
wallabag-24becc9717423748e6ef06c6cf1c499435af66b9.zip
Merge pull request #2667 from wallabag/upgrade-symfony-32
Upgrade to Symfony 3.2
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/DeveloperController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/DeveloperController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/DeveloperController.php b/src/Wallabag/ApiBundle/Controller/DeveloperController.php
index 550c0608..9cb1b626 100644
--- a/src/Wallabag/ApiBundle/Controller/DeveloperController.php
+++ b/src/Wallabag/ApiBundle/Controller/DeveloperController.php
@@ -42,7 +42,7 @@ class DeveloperController extends Controller
42 $clientForm = $this->createForm(ClientType::class, $client); 42 $clientForm = $this->createForm(ClientType::class, $client);
43 $clientForm->handleRequest($request); 43 $clientForm->handleRequest($request);
44 44
45 if ($clientForm->isValid()) { 45 if ($clientForm->isSubmitted() && $clientForm->isValid()) {
46 $client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']); 46 $client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']);
47 $em->persist($client); 47 $em->persist($client);
48 $em->flush(); 48 $em->flush();