]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Controller/UserController.php
Enable register captcha
[userbundle] / Controller / UserController.php
index 73f02ea03c446ebea2195177d259049287be597f..4058c9134d0efaef194fde84926053dedf46244b 100644 (file)
@@ -583,6 +583,8 @@ class UserController extends AbstractController {
                $form = $this->factory->create($this->config['register']['view']['form'], $user, [
                        //Set action to register route name and context
                        'action' => $this->generateUrl($this->config['route']['register']['name'], $this->config['route']['register']['context']),
+                       //Set captcha
+                       'captcha' => true,
                        //Set civility class
                        'civility_class' => $this->config['class']['civility'],
                        //Set civility default