diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-07 14:56:26 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-07 14:56:26 +0200 |
commit | 5e7786f3c4f279f78ff80df53480e21b50c3396b (patch) | |
tree | 4a0224d01c3fb99cfac5a8c5fa499a6a62056e17 | |
parent | c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa (diff) | |
download | wallabag-5e7786f3c4f279f78ff80df53480e21b50c3396b.tar.gz wallabag-5e7786f3c4f279f78ff80df53480e21b50c3396b.tar.zst wallabag-5e7786f3c4f279f78ff80df53480e21b50c3396b.zip |
Fixed two-factor checkbox display in user admin panel
Fix #2380
-rw-r--r-- | src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig | 2 | ||||
-rw-r--r-- | tests/Wallabag/UserBundle/Controller/ManageControllerTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig b/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig index d5cf99c3..67843f20 100644 --- a/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig | |||
@@ -68,7 +68,7 @@ | |||
68 | <br/> | 68 | <br/> |
69 | 69 | ||
70 | {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | 70 | {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} |
71 | {{ form_rest(edit_form) }} | 71 | {{ form_widget(edit_form._token) }} |
72 | </form> | 72 | </form> |
73 | <p> | 73 | <p> |
74 | {{ form_start(delete_form) }} | 74 | {{ form_start(delete_form) }} |
diff --git a/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php b/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php index 19b824b8..243a4459 100644 --- a/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php +++ b/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php | |||
@@ -23,7 +23,7 @@ class ManageControllerTest extends WallabagCoreTestCase | |||
23 | 23 | ||
24 | // Create a new user in the database | 24 | // Create a new user in the database |
25 | $crawler = $client->request('GET', '/users/'); | 25 | $crawler = $client->request('GET', '/users/'); |
26 | $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /users/"); | 26 | $this->assertEquals(200, $client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /users/'); |
27 | $crawler = $client->click($crawler->selectLink('user.list.create_new_one')->link()); | 27 | $crawler = $client->click($crawler->selectLink('user.list.create_new_one')->link()); |
28 | 28 | ||
29 | // Fill in the form and submit it | 29 | // Fill in the form and submit it |