Login plugin gotcha: Account filename must be lowercase

Something I just discovered the hard way so posting in case others hit the same behaviour:

When manually creating or migrating a bunch of user accounts (which I did from Joomla), the underlying filenames in user/accounts directory must all be lower case. Otherwise the login plugin will not find those users. The login IDs themselves are case-insensitive so whether the user logs in with JoeBlogs or joeblogs, the account filename must be joeblogs.yaml for the user to log in.

Probably not completely ideal behaviour.

@MartyB, The name of the account’s *.yaml file is the name of the account.

And according the man page of useradd on Linux:

It is usually recommended to only use usernames that begin with a lower case letter or an underscore, followed by lower case letters, digits, underscores, or dashes. They can end with a dollar sign. In regular expression terms: [a-z_][a-z0-9_-]*[$]?

I guess Grav just follows that longstanding convention. Again, just guessing…