2FA auto complete
This should probably be a feature request, but requiring a completely separate login for feature requests is silly and i'm going around in circles syncing passwords with multiple c-panel sites, so posting it here instead.
Safari for iMac or iOS now allows users to save their 2FA codes for auto completion. The WHM login flow works with auto completing usernames and passwords, but when it comes to the 2FA field, it thinks it's a password field and auto completes it with the password and not the 2FA code.
Can we please get the correct auto complete tag added to the field:
As per apple docs:
autocomplete="one-time-code"
As per apple docs:
-
but requiring a completely separate login for feature requests is silly
One of my ultimate fantasies is that tickets, features, and Forums are all in the same place so if we need to change a Forums post to a ticket or a feature, it just seamlessly happens. We're not there yet, but I hope that is what happens in the future at some point. For the 2FA issue, I get to this screen in Safari: and normally that is where I would enter the 6-digit code from my 2FA device. I'm not entirely sure what code or password would be automatically saved as that code changes every 30 seconds. Can you get me more details on where you're expecting this option to appear?0 -
Yes it's that 2FA screen. I'm not sure if you are aware, but just as Safari offers to auto complete usernames and passwords, it can also autocomplete 2FA codes. Go to the Safari built in Passwords and it lets you add the 2FA generator code, then in future instead of using a third party 2fa app, Safari does it for you. The problem here is that Safari prompts to enter my username into that 2fa box, so I have to manually open the Safari preferences, go to the password manager, authenticate, search for my server URL, copy the 2FA code, back to website to paste the code. If the text box had the correct autocomplete="one-time-code"
tag, it would auto complete it.0 -
Thanks for the additional details. I actually wasn't able to reproduce this on my end as Safari did properly autofill the 2FA code on my end. Here's an image showing this: If I click that option, it fills the 6-digit key and works well. 0 -
It's actually working for me now too. That is very odd. I don't log in very often, but for a while that has never worked properly. Oh well, at least you now know of the new Safari feature. 0 -
Yes, I got to learn something new! 0 -
I came here to open a new thread for the exact same issue and I am suggested with this thread. It seems it still says
<input name="tfatoken" id="tfatoken" class="std_textbox" type="text" placeholder="Security code" autofocus="autofocus" autocomplete="off" required="">
but should ideally be
<input name="tfatoken" id="tfatoken" class="std_textbox" type="text" placeholder="Security code" autofocus="autofocus" autocomplete="one-time-code" required="">
as per https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#one-time-codeI am not sure how in later replies cPRex and OP both got it working, but it never fills the TOTP for me ever.0 -
Indianets - the feature requests site has completely changed since this thread was created, so can you let me know exactly what issue you're seeing?
0 -
cPRex The 2FA code doesn't get autofilled(or suggested) from passwords or any other password manager as the input field has autocomplete="off".
0 -
indianets - is this for WHM, and you're using Firefox? What specific page are you trying to autocomplete where it fails. I need *specific* details on how you're testing this so I can reproduce the issue on my end.
0
Please sign in to leave a comment.
Comments
9 comments