From 124c55d3cf672a920767092e48ebd7778c21583b Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 16 Oct 2024 04:54:39 +0000 Subject: [PATCH] reorder 2FA buttons The first button is selected by default, moving the disable button down, so by default the recover codes will be displayed if a user huts ENTER after typing their password. fixes 14464 --- view/templates/settings/twofactor/index.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/view/templates/settings/twofactor/index.tpl b/view/templates/settings/twofactor/index.tpl index c5f5288505..1832a09d0d 100644 --- a/view/templates/settings/twofactor/index.tpl +++ b/view/templates/settings/twofactor/index.tpl @@ -28,16 +28,16 @@ {{include file="field_password.tpl" field=$password}} -{{if !$has_secret}} -

-{{else}} -

-{{/if}} {{if $has_secret && $verified}}

{{/if}} +{{if !$has_secret}} +

+{{else}} +

+{{/if}} {{if $has_secret && !$verified}}

{{/if}}