php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Updated DbAuthMiddleware to trim leading and/or trailing spaces in username

Open apps-caraga opened this issue 1 year ago • 0 comments

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. 😁

apps-caraga avatar Jan 19 '24 01:01 apps-caraga