minio / console

Simple UI for MinIO Object Storage :abacus:
https://min.io/docs/minio/linux/index.html
GNU Affero General Public License v3.0
850 stars 278 forks source link

Trailing whitespace in username leads to invalid credentials #3422

Open saschadoemer opened 3 months ago

saschadoemer commented 3 months ago

Expected Behavior

As a user, I would expect trailing spaces to be removed in case I copied them with trailing spaces from messages, mails or something else.

Current Behavior

The current version uses the username as it is. Therefore, trailing spaces are used as part of the login and cause an invalid login, which just leads to highlighted fields without any further information.

image

Leads to the following outcome:

image

The trailing space is hard to notice, and the UI is giving no hint.

Additional information

Thanks for the awesome work ❤️

cesnietor commented 3 months ago

thanks for reporting @saschadoemer, PRs are welcome.

saschadoemer commented 3 months ago

I'll try, let me check the code 😃