[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Autofocus the 2FA TOTP input on load

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a8cb5435f296_3818d31427690@gitlab-sidekiq-low-urgency-cpu-bound-v2-6fbbf78d88-qxnpf.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
bad14ec9 by Merci Jacob at 2026-08-24T21:05:39+00:00
[FIX] Autofocus the 2FA TOTP input on load
---
* [FIX] Autofocus the 2FA TOTP input on load

See merge request tikiwiki/tiki!11037

- - - - -


1 changed file:

- templates/modules/mod-login_box.tpl


Changes:

=====================================
templates/modules/mod-login_box.tpl
=====================================
@@ -531,7 +531,7 @@ $(".collapse-toggle", ".siteloginbar_popup .dropdown-menu").on("click", function
         {if $prefs.twoFactorAuth eq 'y' and ((isset($module_params.show_two_factor_auth) and $module_params.show_two_factor_auth eq 'y') or ! empty($error_login))}
         <div id="two_factor_div" class="my-3 {if $mode eq 'header'}mx-2{/if}" style="display: {if $create2FaCodeNormalLogin === 'y'} block; {else} none; {/if}">
             <label for="login-2fa_{$module_logo_instance}">{tr}Two-factor authentication code:{/tr}</label>
-            <input type="text" name="twoFactorAuthCode" autocomplete="off" class="form-control" id="login-2fa_{$module_logo_instance}">
+            <input type="text" name="twoFactorAuthCode" autocomplete="off" class="form-control" autofocus id="login-2fa_{$module_logo_instance}">
             {if $prefs.twoFactorAuthType eq $EMAIL_2FA}
                 <small class="text-muted">{tr}Please type the 6 digit security code sent to your email address{/tr}</small>
                 <a class="mt-1 d-block" href="#" onclick="$('#loginbox-{{$module_logo_instance}}').data('normalLogin', '2fa-regen').trigger('submit')" title="{tr}Click here if you've not received the code and want to send a new one.{/tr}">{tr}I didn't receive the code{/tr}</a>



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/bad14ec950a53e3c85c9521019ee531b7043359a

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/bad14ec950a53e3c85c9521019ee531b7043359a
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.