UI not user-friendly for 2FA with password managers
To Reproduce
- Enable 2FA on your Dokploy account.
- Use Bitwarden to manage your 2FA codes.
- Install the Bitwarden browser extension (I'm using Chrome).
- Log in to your account and wait for the 2FA screen to appear.
- Click on the 2FA input field. Bitwarden will suggest automatically filling in the code.
- Click on the Bitwarden dropdown suggestion.
- Nothing happens.
Current vs. Expected behavior
Current behavior:
- The 2FA code is not filled in when clicking the Bitwarden suggestion.
- The Bitwarden dropdown disappears after clicking it.
Expected behavior:
- The 2FA code should be automatically filled in when clicking the Bitwarden suggestion.
- The form should be automatically submitted after the code is filled in, similar to the Cloudflare dashboard, for example.
Provide environment information
Operating System: MacOS Tahoe 26.6.2
Dokploy version: 0.30.8
Browser: Chrome 154.0.8037.98 (arm64)
Password Manager: Bitwarden
Which area(s) are affected? (Select all that apply)
Authentication
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
Maybe
Hi @luanupe, Dokploy maintainer here. I'm working on a fix for this.
The problem seems to come from the six-box code input on the 2FA screen. Bitwarden's inline suggestion can't fill it, and the input library has an open report for the same thing (guilhermerodz/input-otp#152). My fix replaces it on the login 2FA screen with a regular input, and it submits automatically once all 6 digits are entered.
I don't have Bitwarden Premium, so I can't test the inline TOTP suggestion myself. Could you help test it?
7. Hi @luanupe, Dokploy maintainer here. I'm working on a fix for this. The problem seems to come from the six-box code input on the 2FA screen. Bitwarden's inline suggestion can't fill it, and the input library has an open report for the same thing (guilhermerodz/input-otp#152). My fix replaces it on the login 2FA screen with a regular input, and it submits automatically once all 6 digits are entered. I don't have Bitwarden Premium, so I can't test the inline TOTP suggestion myself. Could you help test it?
Tested myself.
10. > 7. Hi @luanupe, Dokploy maintainer here. I'm working on a fix for this. > The problem seems to come from the six-box code input on the 2FA screen. Bitwarden's inline suggestion can't fill it, and the input library has an open report for the same thing (guilhermerodz/input-otp#152). My fix replaces it on the login 2FA screen with a regular input, and it submits automatically once all 6 digits are entered. > I don't have Bitwarden Premium, so I can't test the inline TOTP suggestion myself. Could you help test it?
Tested myself.
Sorry for the late reply @imrja8
I got a lot on my plate this week due to PHP and NodeJS CVE, barely got time to sleep 😪
Thank you for addressing this issue =)