An issue detailing this bug should probably be submitted on Github.
Remove spaces from username prior to login credential matching
Assume you have a forum user with a username of: "email@example.com"
The user may login to the forum using his password.
However, if the user typed "firstname.lastname@example.org " (note the space following the email), the credentials wont' match.
The added space can be a result of copy/paste, or just an error from the user side.
I verified this behavior with this forum as well. It can be easily replicated by yourself.
I think this can help, and it may be a small change. Not sure however
All the best,