From 18cf594f8ad4bb5236274cf1326c5e6ea549a570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 15 Oct 2015 13:17:21 +0200 Subject: move 2factor activation in parameters --- .../views/themes/baggy/Config/index.html.twig | 2 + .../views/themes/material/Config/index.html.twig | 2 + .../Tests/Controller/SecurityControllerTest.php | 62 ++++++++++++---------- 3 files changed, 38 insertions(+), 28 deletions(-) (limited to 'src/Wallabag/CoreBundle') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index cee4f672..abe5dc9e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig @@ -100,6 +100,7 @@ + {% if twofactor_auth %}
{{ form_label(form.user.twoFactorAuthentication) }} @@ -107,6 +108,7 @@ {{ form_widget(form.user.twoFactorAuthentication) }}
+ {% endif %} {{ form_rest(form.user) }} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index b20c4ea5..ab24d4ef 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig @@ -132,6 +132,7 @@ + {% if twofactor_auth %}
{{ form_widget(form.user.twoFactorAuthentication) }} @@ -139,6 +140,7 @@ {{ form_errors(form.user.twoFactorAuthentication) }}
+ {% endif %}