9 votes

Error when logging in using a password manager

I'm using Safari 12.0.2 on macOS 10.14.2 (Mojave). The same issue also occurs on iOS 12.1.2 (using Safari).

When using 1Password to autofill with the browser extension on macOS or the "autofill" feature on iOS an error message pops up: username: String does not match expected pattern.

I have to either use the browser supplied autofill on macOS or manually copy/paste username and password into the corresponding fields. On iOS there's an autofill API which I have set to use 1Password in the browser, also causing the error

Edit: Video of the issue

7 comments

  1. [5]
    cfabbro
    (edited )
    Link
    This could be some quirk/bug with the autofill API not playing nice with Tildes Content Security Policy, but IMO it's more likely there is simply something else stored in your 1Password username...

    This could be some quirk/bug with the autofill API not playing nice with Tildes Content Security Policy, but IMO it's more likely there is simply something else stored in your 1Password username field that is causing this issue, like a space at the end or hidden control character. Have you tried editing your Tildes entry in 1Password, deleting and then manually replacing the stored username to make sure it's exactly correct (with no hidden characters in it)?

    8 votes
    1. [4]
      aymm
      Link Parent
      Thanks, that did the trick! Guess it was some kind of invisible control character. I initially tried to register the nick „äymm“ and had that saved. When that failed during registration (which it...

      Thanks, that did the trick! Guess it was some kind of invisible control character. I initially tried to register the nick „äymm“ and had that saved. When that failed during registration (which it really shouldn’t...) I just manually copy/pasted the current value of the nickname field into 1Password

      4 votes
      1. [3]
        Deimos
        (edited )
        Link Parent
        Allowing unicode characters in usernames is kind of a nightmare. There are so many variants that look almost the same that it can cause a ton of impersonation issues (either deliberate or...

        When that failed during registration (which it really shouldn’t...)

        Allowing unicode characters in usernames is kind of a nightmare.

        • There are so many variants that look almost the same that it can cause a ton of impersonation issues (either deliberate or not)—people aren't going to distinguish between aymm and äymm and àymm and áymm and etc.
        • Most people don't know how to type those characters, so if they wanted to ping you somewhere with @äymm, they wouldn't be able to without doing something like finding one of your comments to copy-paste your username from. Even that's hard, because they can't go to your user page or search for you to find something to copy-paste it from—they don't know how to type your username, so they can't.
        • They're not valid in urls, so your user page url would have been https://tildes.net/user/%C3%A4ymm, which is really ugly.
        13 votes
        1. [2]
          Arthur
          Link Parent
          Hey, @Deimos, You probably already know about this and it's probably there for a reason, but it's a little bit relavent to this comment section so I just thought I'd bring it up. Whenever I'm on...

          Hey, @Deimos, You probably already know about this and it's probably there for a reason, but it's a little bit relavent to this comment section so I just thought I'd bring it up. Whenever I'm on mobile, which is how I normally use tildes, I log in and use auto correct to make sure I'm typing Arthur and not Arhur or something like that. Doing so however adds a space onto the end of the username and if I forget about it I get the message "username: String does not match expected pattern." It's definitely not a big deal, I can just delete the space at the end of my username, but I've noticed that sites like Reddit automatically remove the space when you click log in.

          I didn't want to make a post about it as I'm sure you know about it and there's some code reason for it, but I just thought I'd write a comment letting you know just in case.

          2 votes
          1. Deimos
            Link Parent
            Thanks - I've fixed this now. Extra spaces after (or before) the username will just get trimmed off automatically now, so you don't need to do it manually any more.

            Thanks - I've fixed this now. Extra spaces after (or before) the username will just get trimmed off automatically now, so you don't need to do it manually any more.

            3 votes
  2. [2]
    JuniperMonkeys
    Link
    Hmm. For whatever it's worth, I have the same OS and browser versions, 1Password 7.2.4, and no issues, either with login/password or the subsequent 2FA.

    Hmm. For whatever it's worth, I have the same OS and browser versions, 1Password 7.2.4, and no issues, either with login/password or the subsequent 2FA.

    3 votes
    1. aymm
      Link Parent
      2FA works fine too

      2FA works fine too

      3 votes