Skip to content

Commit

Permalink
Merge pull request #548 from VVishion/fix-otp-auto-fill
Browse files Browse the repository at this point in the history
Autofill lonely OTP inputs
  • Loading branch information
tuxor1337 committed Aug 9, 2023
2 parents 2f3fb44 + 3c696bd commit 48caad4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/page.js
Expand Up @@ -787,7 +787,10 @@ PassFF.Page = (function () {
fillInputs: content_function("Page.fillInputs",
function (item, andSubmit, cautious) {
refocus();
if (inputElements.filter(inp => inp[1] == "password").length === 0) {
if (
inputElements.filter(inp => inp[1] == "password" || inp[1] == "otp")
.length === 0
) {
if (inputElements.length == 0 || cautious) {
log.debug("fillInputs: No relevant login input elements recognized.");
return Promise.resolve();
Expand Down

0 comments on commit 48caad4

Please sign in to comment.