]> git.mxchange.org Git - friendica.git/commitdiff
reorder 2FA buttons
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 16 Oct 2024 04:54:39 +0000 (04:54 +0000)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 16 Oct 2024 04:54:39 +0000 (04:54 +0000)
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

index c5f5288505156a717ea7befb77a18b3b0be8ac2c..1832a09d0d7456cc511bf03a9f3c5e4adaab9829 100644 (file)
 
                {{include file="field_password.tpl" field=$password}}
 
-{{if !$has_secret}}
-               <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="enable">{{$enable_label}}</button></p>
-{{else}}
-               <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="disable">{{$disable_label}}</button></p>
-{{/if}}
 {{if $has_secret && $verified}}
                <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="recovery">{{$recovery_codes_label}}</button></p>
                <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="app_specific">{{$app_specific_passwords_label}}</button></p>
                <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="trusted">{{$trusted_browsers_label}}</button></p>
 {{/if}}
+{{if !$has_secret}}
+               <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="enable">{{$enable_label}}</button></p>
+{{else}}
+               <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="disable">{{$disable_label}}</button></p>
+{{/if}}
 {{if $has_secret && !$verified}}
                <p><button type="submit" name="action" id="confirm-submit-button" class="btn btn-primary confirm-button" value="configure">{{$configure_label}}</button></p>
 {{/if}}