]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed two-factor checkbox display in user admin panel 2388/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 7 Oct 2016 12:56:26 +0000 (14:56 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 7 Oct 2016 12:56:26 +0000 (14:56 +0200)
Fix #2380

src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig
tests/Wallabag/UserBundle/Controller/ManageControllerTest.php

index d5cf99c32691338365b4c004a44178fb7fe549d9..67843f20182fd5052c35fbcfc173cdbdaa521936 100644 (file)
@@ -68,7 +68,7 @@
                                 <br/>
 
                                 {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
-                                {{ form_rest(edit_form) }}
+                                {{ form_widget(edit_form._token) }}
                             </form>
                             <p>
                                 {{ form_start(delete_form) }}
index 19b824b87bc0eddf7794833609b3b582c96d7b43..243a4459393e1db6a411a1da0115a56c4f90ca90 100644 (file)
@@ -23,7 +23,7 @@ class ManageControllerTest extends WallabagCoreTestCase
 
         // Create a new user in the database
         $crawler = $client->request('GET', '/users/');
-        $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /users/");
+        $this->assertEquals(200, $client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /users/');
         $crawler = $client->click($crawler->selectLink('user.list.create_new_one')->link());
 
         // Fill in the form and submit it