$clientForm->handleRequest($request);
if ($clientForm->isValid()) {
- $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password'));
+ $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password', 'refresh_token'));
$em->persist($client);
$em->flush();
$this->get('session')->getFlashBag()->add(
'notice',
- 'New client created.'
+ 'flashes.developer.notice.client_created'
);
return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', array(
$this->get('session')->getFlashBag()->add(
'notice',
- 'Client deleted'
+ 'flashes.developer.notice.client_deleted'
);
return $this->redirect($this->generateUrl('developer'));