ddaddy

Well-Known Member
Aug 19, 2015
71
12
58
UK
cPanel Access Level
Root Administrator
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:
autocomplete="one-time-code"

As per apple docs: https://developer.apple.com/documen...ng_password_autofill_on_an_html_input_element
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,484
2,605
363
cPanel Access Level
Root Administrator
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:

Screen Shot 2022-05-17 at 1.04.44 PM.png

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?
 

ddaddy

Well-Known Member
Aug 19, 2015
71
12
58
UK
cPanel Access Level
Root Administrator
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.

Screenshot 2022-05-18 at 08.35.21.png

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.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,484
2,605
363
cPanel Access Level
Root Administrator
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:

Screen Shot 2022-05-18 at 11.36.59 AM.png

If I click that option, it fills the 6-digit key and works well.
 

ddaddy

Well-Known Member
Aug 19, 2015
71
12
58
UK
cPanel Access Level
Root Administrator
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.