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
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)?
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
Allowing unicode characters in usernames is kind of a nightmare.
@ä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.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.
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.
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.
2FA works fine too