Login with autofilled fields fails

When trying to login with autofilled fields, the login is denied because the autofill adds an unnecessary space behind the username/emailaddress. Without the space at the end, the login is successfull.

Is there any way to fix this?

In the case you are using Lock Web as your login interface, the last version of Lock (11.4) contains a change to remove spaces from email and username. Upgrading to the latest Lock (11.4) should fix this!