diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2020-04-13 16:59:02 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2020-04-13 17:00:53 +0200 |
commit | 4ff1efa41883f80bb1764ea97dd9dd46b557a979 (patch) | |
tree | 2f4aa44aeb632793c2567cb5a83221e60359d575 /src/Wallabag/CoreBundle/Resources | |
parent | 365b3dd21f7c4f3e7f2b6f1502f284a6190dd918 (diff) | |
download | wallabag-4ff1efa41883f80bb1764ea97dd9dd46b557a979.tar.gz wallabag-4ff1efa41883f80bb1764ea97dd9dd46b557a979.tar.zst wallabag-4ff1efa41883f80bb1764ea97dd9dd46b557a979.zip |
Added a button to disable 2FA when enabled
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
18 files changed, 20 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index 53b60c72..fc43e9fd 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | # entries_reset: Entries reset | 613 | # entries_reset: Entries reset |
614 | # archived_reset: Archived entries deleted | 614 | # archived_reset: Archived entries deleted |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml index b9694be8..53c960b6 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Einträge zurücksetzen | 613 | entries_reset: Einträge zurücksetzen |
614 | archived_reset: Archiverte Einträge zurücksetzen | 614 | archived_reset: Archiverte Einträge zurücksetzen |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index e8b1ea15..c6e3cd42 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Entries reset | 613 | entries_reset: Entries reset |
614 | archived_reset: Archived entries deleted | 614 | archived_reset: Archived entries deleted |
615 | otp_enabled: Two-factor authentication enabled | 615 | otp_enabled: Two-factor authentication enabled |
616 | otp_disabled: Two-factor authentication disabled | ||
616 | tagging_rules_imported: Tagging rules imported | 617 | tagging_rules_imported: Tagging rules imported |
617 | tagging_rules_not_imported: Error while importing tagging rules | 618 | tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml index 6fd44f8e..72e36449 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Artículos reiniciados | 613 | entries_reset: Artículos reiniciados |
614 | archived_reset: Artículos archivados borrados | 614 | archived_reset: Artículos archivados borrados |
615 | otp_enabled: Autenticación de dos pasos activada | 615 | otp_enabled: Autenticación de dos pasos activada |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | tagging_rules_imported: Reglas de etiquetado importadas | 617 | tagging_rules_imported: Reglas de etiquetado importadas |
617 | tagging_rules_not_imported: Un error se ha producico en la importación de las reglas de etiquetado | 618 | tagging_rules_not_imported: Un error se ha producico en la importación de las reglas de etiquetado |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index 627923b0..8da90018 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | # entries_reset: Entries reset | 613 | # entries_reset: Entries reset |
614 | # archived_reset: Archived entries deleted | 614 | # archived_reset: Archived entries deleted |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 542dc25c..d5454781 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | |||
@@ -614,6 +614,7 @@ flashes: | |||
614 | entries_reset: "Articles supprimés" | 614 | entries_reset: "Articles supprimés" |
615 | archived_reset: "Articles archivés supprimés" | 615 | archived_reset: "Articles archivés supprimés" |
616 | otp_enabled: "Authentification à double-facteur activée" | 616 | otp_enabled: "Authentification à double-facteur activée" |
617 | otp_disabled: "Authentification à double-facteur désactivée" | ||
617 | tagging_rules_imported: Règles bien importées | 618 | tagging_rules_imported: Règles bien importées |
618 | tagging_rules_not_imported: Impossible d'importer les règles | 619 | tagging_rules_not_imported: Impossible d'importer les règles |
619 | entry: | 620 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml index 5d017a40..99a8dc2d 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Reset articoli | 613 | entries_reset: Reset articoli |
614 | # archived_reset: Archived entries deleted | 614 | # archived_reset: Archived entries deleted |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml index 9de8c571..a1eaa5dd 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ja.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: 記事がリセットされました | 613 | entries_reset: 記事がリセットされました |
614 | archived_reset: アーカイブ済みの記事がリセットされました | 614 | archived_reset: アーカイブ済みの記事がリセットされました |
615 | otp_enabled: 2要素認証が有効化されました | 615 | otp_enabled: 2要素認証が有効化されました |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | tagging_rules_imported: タグ付けルールがインポートされました | 617 | tagging_rules_imported: タグ付けルールがインポートされました |
617 | tagging_rules_not_imported: タグ付けルールのインポート中にエラーが発生しました | 618 | tagging_rules_not_imported: タグ付けルールのインポート中にエラーが発生しました |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml index e0fb1933..598243db 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Articles levats | 613 | entries_reset: Articles levats |
614 | archived_reset: Articles archivat suprimits | 614 | archived_reset: Articles archivat suprimits |
615 | otp_enabled: Autentificacion en dos temps activada | 615 | otp_enabled: Autentificacion en dos temps activada |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | tagging_rules_imported: Règlas d’etiquetatge importadas | 617 | tagging_rules_imported: Règlas d’etiquetatge importadas |
617 | tagging_rules_not_imported: Error en important las règlas d’etiquetatge | 618 | tagging_rules_not_imported: Error en important las règlas d’etiquetatge |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml index dfaf9e89..af8447fe 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Zresetuj wpisy | 613 | entries_reset: Zresetuj wpisy |
614 | archived_reset: Zarchiwizowane wpisy usunięte | 614 | archived_reset: Zarchiwizowane wpisy usunięte |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml index 8908c0cc..d993cb05 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: Artigos reinicializados | 613 | entries_reset: Artigos reinicializados |
614 | archived_reset: Artigos arquivados apagados | 614 | archived_reset: Artigos arquivados apagados |
615 | otp_enabled: Autenticação de dois fatores ativada | 615 | otp_enabled: Autenticação de dois fatores ativada |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | tagging_rules_imported: Regras de tags importadas | 617 | tagging_rules_imported: Regras de tags importadas |
617 | tagging_rules_not_imported: Erro ao importar regras de tags | 618 | tagging_rules_not_imported: Erro ao importar regras de tags |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index b269578a..bc8b72e0 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | # entries_reset: Entries reset | 613 | # entries_reset: Entries reset |
614 | # archived_reset: Archived entries deleted | 614 | # archived_reset: Archived entries deleted |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml index 648bbc80..2f7f55e5 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: "Записи сброшены" | 613 | entries_reset: "Записи сброшены" |
614 | # archived_reset: Archived entries deleted | 614 | # archived_reset: Archived entries deleted |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml index 4de87adc..48e1c34a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: รีเซ็ตรายการ | 613 | entries_reset: รีเซ็ตรายการ |
614 | archived_reset: การลบเอกสารของรายการ | 614 | archived_reset: การลบเอกสารของรายการ |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index 9afa648c..19029c0b 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | # entries_reset: Entries reset | 613 | # entries_reset: Entries reset |
614 | # archived_reset: Archived entries deleted | 614 | # archived_reset: Archived entries deleted |
615 | # otp_enabled: Two-factor authentication enabled | 615 | # otp_enabled: Two-factor authentication enabled |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | # tagging_rules_imported: Tagging rules imported | 617 | # tagging_rules_imported: Tagging rules imported |
617 | # tagging_rules_not_imported: Error while importing tagging rules | 618 | # tagging_rules_not_imported: Error while importing tagging rules |
618 | entry: | 619 | entry: |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml index a34e3852..f48ce37a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.zh.yml | |||
@@ -613,6 +613,7 @@ flashes: | |||
613 | entries_reset: 项目列表已重置 | 613 | entries_reset: 项目列表已重置 |
614 | archived_reset: 所有存档项目已删除 | 614 | archived_reset: 所有存档项目已删除 |
615 | otp_enabled: 两步验证已启用 | 615 | otp_enabled: 两步验证已启用 |
616 | # otp_disabled: Two-factor authentication disabled | ||
616 | tagging_rules_imported: 标签规则已导入 | 617 | tagging_rules_imported: 标签规则已导入 |
617 | tagging_rules_not_imported: 导入标签规则时发生了错误 | 618 | tagging_rules_not_imported: 导入标签规则时发生了错误 |
618 | entry: | 619 | entry: |
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 f719bea2..eb395eac 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 | |||
@@ -195,12 +195,12 @@ | |||
195 | <tr> | 195 | <tr> |
196 | <td>{{ 'config.form_user.two_factor.emailTwoFactor_label'|trans }}</td> | 196 | <td>{{ 'config.form_user.two_factor.emailTwoFactor_label'|trans }}</td> |
197 | <td>{% if app.user.isEmailTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> | 197 | <td>{% if app.user.isEmailTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> |
198 | <td><a href="{{ path('config_otp_email') }}" class="waves-effect waves-light btn{% if app.user.isEmailTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_email'|trans }}</a></td> | 198 | <td><a href="{{ path('config_otp_email') }}" class="waves-effect waves-light btn{% if app.user.isEmailTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_email'|trans }}</a> {% if app.user.isEmailTwoFactor %}<a href="{{ path('disable_otp_email') }}" class="waves-effect waves-light btn">Disable</a>{% endif %}</td> |
199 | </tr> | 199 | </tr> |
200 | <tr> | 200 | <tr> |
201 | <td>{{ 'config.form_user.two_factor.googleTwoFactor_label'|trans }}</td> | 201 | <td>{{ 'config.form_user.two_factor.googleTwoFactor_label'|trans }}</td> |
202 | <td>{% if app.user.isGoogleTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> | 202 | <td>{% if app.user.isGoogleTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> |
203 | <td><a href="{{ path('config_otp_app') }}" class="waves-effect waves-light btn{% if app.user.isGoogleTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_app'|trans }}</a></td> | 203 | <td><a href="{{ path('config_otp_app') }}" class="waves-effect waves-light btn{% if app.user.isGoogleTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_app'|trans }}</a> {% if app.user.isGoogleTwoFactor %}<a href="{{ path('disable_otp_app') }}" class="waves-effect waves-light btn">Disable</a>{% endif %}</td> |
204 | </tr> | 204 | </tr> |
205 | </tbody> | 205 | </tbody> |
206 | </table> | 206 | </table> |
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 d8e9694d..42d1f2a6 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 | |||
@@ -229,12 +229,12 @@ | |||
229 | <tr> | 229 | <tr> |
230 | <td>{{ 'config.form_user.two_factor.emailTwoFactor_label'|trans }}</td> | 230 | <td>{{ 'config.form_user.two_factor.emailTwoFactor_label'|trans }}</td> |
231 | <td>{% if app.user.isEmailTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> | 231 | <td>{% if app.user.isEmailTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> |
232 | <td><a href="{{ path('config_otp_email') }}" class="waves-effect waves-light btn{% if app.user.isEmailTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_email'|trans }}</a></td> | 232 | <td><a href="{{ path('config_otp_email') }}" class="waves-effect waves-light btn{% if app.user.isEmailTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_email'|trans }}</a> {% if app.user.isEmailTwoFactor %}<a href="{{ path('disable_otp_email') }}" class="waves-effect waves-light btn">Disable</a>{% endif %}</td> |
233 | </tr> | 233 | </tr> |
234 | <tr> | 234 | <tr> |
235 | <td>{{ 'config.form_user.two_factor.googleTwoFactor_label'|trans }}</td> | 235 | <td>{{ 'config.form_user.two_factor.googleTwoFactor_label'|trans }}</td> |
236 | <td>{% if app.user.isGoogleTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> | 236 | <td>{% if app.user.isGoogleTwoFactor %}<b>{{ 'config.form_user.two_factor.state_enabled'|trans }}</b>{% else %}{{ 'config.form_user.two_factor.state_disabled'|trans }}{% endif %}</td> |
237 | <td><a href="{{ path('config_otp_app') }}" class="waves-effect waves-light btn{% if app.user.isGoogleTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_app'|trans }}</a></td> | 237 | <td><a href="{{ path('config_otp_app') }}" class="waves-effect waves-light btn{% if app.user.isGoogleTwoFactor %} disabled{% endif %}">{{ 'config.form_user.two_factor.action_app'|trans }}</a> {% if app.user.isGoogleTwoFactor %}<a href="{{ path('disable_otp_app') }}" class="waves-effect waves-light btn">Disable</a>{% endif %}</td> |
238 | </tr> | 238 | </tr> |
239 | </tbody> | 239 | </tbody> |
240 | </table> | 240 | </table> |