Hello,
I am using 1password with WHMCS.
The autofill works well for username and password, but the OTP doesn't autofill on the next page.
What would 1password or WHMCS need to do to make it autofill?
The form looks like this:
*form method="post" action="/XXXX/dologin.php" role="form">
*input type="hidden" name="token" value="5ae6c7d1316558283d26d31a5c62091c18d4XXXX">
*div align="center">
*input type="text" name="key" maxlength="6" class="form-control input-lg" autofocus="">
*br>
*input id="btnLogin" type="submit" class="btn btn-primary btn-block btn-lg" value="Login">
*/div>
*/form>
Thank you
Michael
1Password Version: Not Provided
Extension Version: 1.22.3
OS Version: Not Provided
Sync Type: Not Provided
Comments
Team Member
Hey Michael,
I think the name of the field ("key") is not quite something that 1Password can recognize, but I'm not sure so we'll have to collect some page details and test it here.
Here's how to collect the page details:
In Chrome:
localStorage.setItem("devtools", "Y")
In Firefox:
about:debugging#/runtime/this-firefox
in your address bar and press Return or Enter.localStorage.setItem("devtools", "Y")
Hello ag_yaron,
Here you go.
{
"unparsedUrl": "https://www.webou-pro.com/XXXX/login.php?redirect=/entrer/index.php",
"title": "WHMCS - Login",
"frames": [
{
"fields": [
{
"formOpid": 0,
"htmlName": "key",
"htmlClass": "form-control input-lg",
"isActive": true,
"maxLength": 6,
"opid": 0,
"type": "text"
},
{
"formOpid": 0,
"htmlId": "btnLogin",
"htmlClass": "btn btn-primary btn-block btn-lg",
"opid": 1,
"type": "submit",
"value": "Login"
},
{
"htmlClass": "btn btn-primary btn-sm dropdown-toggle",
"opid": 2,
"type": "button",
"value": "Choose Language",
"labelBefore": "Can't Access Your 2nd Factor Device? Login using Backup Code"
}
],
"forms": [
{
"headerText": "Login Your second factor is required to complete the login.",
"htmlAction": "https://www.webou-pro.com/XXXX/dologin.php",
"htmlMethod": "post",
"opid": 0
}
],
"origin": "https://www.webou-pro.com",
"title": "WHMCS - Login",
"pathName": "/XXXX/login.php",
"uuid": "fcaci1"
}
]
}
Kind regards
Michael
Team Member
Hey @mmarch ,
Thanks for the page details. Did you edit them by any chance? or was that everything the extension showed when you collected the details?
In any case, I'll forward it to our developers. Thank you
ref: dev/core/core#4308
Hello ag_yaron,
I only edited the XXXX part of the URL.
Kind regards
Michael
Team Member
Thanks for the update, Michael!
Hopefully we will be able to improve things on that website in the near future.