X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Floginform.html;h=a49b42d3c0de71aa1d699c05dd05abe7d981c78d;hb=849d1650c1af853162b749af896c20bb25d4a4e8;hp=f0b45df28be63fa23e365a570e4b1c9ad6c976ee;hpb=dbcd06e988d8434f125b8a5ee8f5bbcb7cd87874;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/loginform.html b/tpl/loginform.html index f0b45df2..a49b42d3 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -2,7 +2,13 @@ {include="includes"} +{if="ban_canLogin()"} + {if="empty($username)"} + onload="document.loginform.login.focus();" + {else} + onload="document.loginform.password.focus();" + {/if} +{/if}>