php-crud-api
php-crud-api copied to clipboard
Updated DbAuthMiddleware to trim leading and/or trailing spaces in username
Updated middleware to trim leading and/or trailing spaces in username. Before this, if a username is jsmith, jsmith or jsmith will result to authentication failed due to extra spaces before or after the printable or visible characters in the username. Not sure if it is intentional, but it's confusing if these usernames will be treated as distinct. 😁