2FA code doesn't autofill on Synology account site

When I try to log in at https://account.synology.com/ the email and password is auto filled as expected but the 2FA TOTP code isn't. It doesn't matter which way I try, keyboard shortcuts or click on all of the different options for filling the code in both 1Password X and the old browser plugin, they all fail. The only way to fill it is to either copy/paste or drag and drop which works in both extensions.

I found an old thread about this from June 2020 and the solution there was to use the beta of 1Password X. But it seems Synology has changed something yet again and I've tried the current beta but it didn't fix the issue this time, hence this thread.

Here's hoping you can figure out a fix for this.


1Password Version: 7.6.791
Extension Version: 4.7.5.90, 1.23.0 and 1.24.1
OS Version: Windows 10 2004
Sync Type: 1Password

Comments

  • ag_yaron
    ag_yaron
    1Password Alumni

    Hey @Backspaze ,

    I tested Synology's website just now and the 2FA code is being autofilled by 1Password properly (with 1Password In the browser 1.23.0).
    I'm wondering if maybe you're using that website in a non-English language perhaps? If so, can you switch to the English version of the website and see if it does work correctly?

    In case you are already using the English version, my next suggestion would be to save a brand new login on that website, then copy the 2FA secret from your current login to the new login and see if the new login does work.

  • Backspaze
    Backspaze
    Community Member

    @ag_yaron if I switch to the English version it works, so it seems something's up with the Swedish version of the site.

    I noticed that the URL I'd saved in 1Password was https://account.synology.com/sv-se, but removing the sv-se didn't make any difference.

    I also tried creating a new login for the website but that didn't fix the issue either.

    Side note: I'm guessing 1Password In the browser is the new name for 1Password X? I was a bit confused when reading the latest release notes for 1.23.0 where there was a note about "1Password X has been renamed! 👋 {!4867}" but the header still says 1Password X.

  • ag_yaron
    ag_yaron
    1Password Alumni
    edited February 2021

    Thanks for testing @Backspaze .

    Yes, 1Password X was renamed to "1Password in the browser" (and is still being worked on to completely make the transition) :)
    Can you please grab the page's structure for me while you're on the Swedish version? Here's how:

    1. Get to the Swedish version of the login page and autofill your username and password.
    2. When you get to the 2FA field, right click the 1Password icon on the top right corner of your browser and select "Help" -> "Collect Page Structure".
    3. A new tab will open with the collected structure. Make sure your username/password do not show up anywhere in there, then copy the entire thing and paste it here, or email it to us as a text file to support+extensions@1password.com with a link to this forum discussion.

    That will allow us to improve 2FA fields recognition in the Swedish language in 1Password :)

  • Backspaze
    Backspaze
    Community Member
    edited February 2021
    {
        "unparsedUrl": "https://account.synology.com/sv-se/oauth2/login/home/a279c614e7244a5d9f8613a343182916#password",
        "title": "Synology Account",
        "frames": [
            {
                "fields": [
                    {
                        "htmlId": "text__7822",
                        "opid": 0,
                        "placeholder": "Ange den 6-siffriga koden",
                        "type": "text",
                        "label": "Verifikationskod",
                        "labelBefore": "Verifikationskod"
                    },
                    {
                        "isChecked": true,
                        "isHidden": true,
                        "opid": 1,
                        "type": "checkbox"
                    },
                    {
                        "htmlClass": "mfp-close",
                        "opid": 2,
                        "title": "Close (Esc)",
                        "type": "button",
                        "labelBefore": "Hoppa över tvåstegsautentisering på den här datorn Använd säkerhetskopieringskod Logga in"
                    },
                    {
                        "formOpid": 0,
                        "htmlName": "email",
                        "isDisabled": true,
                        "isUserEdited": true,
                        "opid": 3,
                        "placeholder": "Synology-konto (e-postadress)",
                        "type": "email",
                        "labelBefore": "Account Logga in"
                    },
                    {
                        "formOpid": 0,
                        "htmlName": "password",
                        "isUserEdited": true,
                        "opid": 4,
                        "placeholder": "Lösenord",
                        "type": "password"
                    },
                    {
                        "formOpid": 0,
                        "htmlClass": "btn btn-primary row_btn",
                        "opid": 5,
                        "type": "submit"
                    }
                ],
                "forms": [
                    {
                        "htmlAction": "https://account.synology.com/sv-se/oauth2/login/home/a279c614e7244a5d9f8613a343182916#password",
                        "opid": 0,
                        "textContent": "Account Logga in Logga in Glömt lösenord? Skapa ett Synology-konto Kan du inte logga in? Få hjälp"
                    }
                ],
                "origin": "https://account.synology.com",
                "title": "Synology Account",
                "pathName": "/sv-se/oauth2/login/home/a279c614e7244a5d9f8613a343182916",
                "uuid": "jite33"
            }
        ]
    }
    
  • ag_yaron
    ag_yaron
    1Password Alumni
    edited February 2021

    Thanks @Backspaze .

    This 2FA field has a random name generated to it with every visit of the page (in your structure it is called "text__7822" but the number changes every time) so it might make things a bit harder, but it is very helpful so thank you for providing it! Hopefully we'll be able to get this to work on the next update or so of 1Password in the browser.

    ref: dev/core/core#4990

  • Backspaze
    Backspaze
    Community Member

    Ok, interesting. I just ran a couple of tests for all of the English versions (Global, US and UK) and they also have a random number generated each time. Strange that it works for all of those if 1Password is relying on the htmlId for identifying the field. But anyway, I hope you can work out a solution.

  • ag_yaron
    ag_yaron
    1Password Alumni

    @Backspaze 1Password first relies on the HTML name/id, but if that fails it falls back to the field's title, placeholder and other clues it can find on the page, which doesn't work well in Swedish apparently :)

    We'll add some Swedish keywords to 1Password's brain in the next update or so and see how that goes.

This discussion has been closed.