caddy-security icon indicating copy to clipboard operation
caddy-security copied to clipboard

question: Can you add 'autofocus' to the passcode entry field?

Open SinisterSpatula opened this issue 1 year ago • 0 comments

During the login process when arriving at the passcode entry step (two factor code entry) the field lacks 'autofocus' and I always have to grab hold of my mouse and click the field to put in my code. Very trivial but also a little annoying. :) I couldn't find where the html was stored within the code base or I would have tried to make a pull request for it.

Also would be great if there was a version number printed at the bottom of the applications list/main dashboard or somewhere so I can tell if my caddy-security is out of date and I should update.

Additionally, wasn't sure on how to update caddy-security, I just went to caddy website and downloaded with caddy-security selected as a plugin, and put that built executable bin onto my server to replace my old caddy binary in /bin. I hope that's correct and updates my caddy-security module?

Still loving this plug-in so much.

edit: I found that I could do a workaround with custom js:

document.getElementById('passcode')?.focus();

SinisterSpatula avatar Jun 17 '23 02:06 SinisterSpatula