Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-4108] Add "twoFa" to the TotpFieldNames array in autofill-constants.ts #6413

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

pejeio
Copy link
Contributor

@pejeio pejeio commented Sep 26, 2023

Type of change

- [ ] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [X] Other

Objective

Improvement of TOTP field recognition. This change adds "twoFa" to the TotpFieldNames array in apps/browser/src/autofill/services/autofill-constants.ts.

Many websites now use "twoFa" as an ID for their TOTP text input fields. By including it in the TotpFieldNames array, Bitwarden will be better equipped to identify and autofill these fields, enhancing the user experience for a wide range of websites.

@pejeio pejeio requested a review from a team as a code owner September 26, 2023 18:44
@CLAassistant
Copy link

CLAassistant commented Sep 26, 2023

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-4108

@bitwarden-bot bitwarden-bot changed the title Add "twoFa" to the TotpFieldNames array in autofill-constants.ts [PM-4108] Add "twoFa" to the TotpFieldNames array in autofill-constants.ts Sep 26, 2023
Copy link
Contributor

@jprusik jprusik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and looks good to me; thanks for the contribution!

Next step is having our QA team take a look.

@jprusik jprusik self-assigned this Oct 3, 2023
@jprusik jprusik added the needs-qa Marks a PR as requiring QA approval label Oct 3, 2023
@jprusik jprusik removed the needs-qa Marks a PR as requiring QA approval label Nov 13, 2023
@jprusik jprusik merged commit 77be62a into bitwarden:master Nov 13, 2023
24 of 30 checks passed
@jprusik
Copy link
Contributor

jprusik commented Nov 13, 2023

Thanks again for your contribution @pejeio - the changes have passed QA and have been merged.

jprusik added a commit that referenced this pull request Nov 14, 2023
"approvals_code", -- facebook.com
"code", -- cash.app, docker.com, dropbox.com, evernote.com, lincolnfinancial.com, 
"otc", -- live.com
"otc-code", -- evernote.com
"otp-code", -- getpostman.com
"otpcode", -- amazon.com
"pin", -- linkedin.com
"security_code", -- docusign.com
"twofa", -- #6413 (but lowercased to match convention)
"verificationCode", -- bestbuy.com

Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
BlackDex pushed a commit to BlackDex/bitwarden-clients that referenced this pull request Nov 21, 2023
…ts.ts (bitwarden#6413)

* Update autofill-constants.ts

add "twoFa" to the TotpFieldNames constant

* add "twoFa" to the TotpFieldNames array in autofill-constants.ts
BlackDex pushed a commit to BlackDex/bitwarden-clients that referenced this pull request Nov 21, 2023
"approvals_code", -- facebook.com
"code", -- cash.app, docker.com, dropbox.com, evernote.com, lincolnfinancial.com, 
"otc", -- live.com
"otc-code", -- evernote.com
"otp-code", -- getpostman.com
"otpcode", -- amazon.com
"pin", -- linkedin.com
"security_code", -- docusign.com
"twofa", -- bitwarden#6413 (but lowercased to match convention)
"verificationCode", -- bestbuy.com

Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
quexten pushed a commit to quexten/clients that referenced this pull request Feb 10, 2024
…ts.ts (bitwarden#6413)

* Update autofill-constants.ts

add "twoFa" to the TotpFieldNames constant

* add "twoFa" to the TotpFieldNames array in autofill-constants.ts
quexten pushed a commit to quexten/clients that referenced this pull request Feb 10, 2024
"approvals_code", -- facebook.com
"code", -- cash.app, docker.com, dropbox.com, evernote.com, lincolnfinancial.com, 
"otc", -- live.com
"otc-code", -- evernote.com
"otp-code", -- getpostman.com
"otpcode", -- amazon.com
"pin", -- linkedin.com
"security_code", -- docusign.com
"twofa", -- bitwarden#6413 (but lowercased to match convention)
"verificationCode", -- bestbuy.com

Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants