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