productiveops / dokemon

Docker Container Management GUI
https://dokemon.dev
MIT License
689 stars 25 forks source link

Maximum password length is much shorter than anticipated #42

Open turtureanu opened 1 week ago

turtureanu commented 1 week ago

After installing dokemon and navigating to http://localhost:9090 I was greeted with a screen that prompted me to create a user (web/src/app/auth/setup.tsx).

I use a password manager, and I don't like to remember passwords. The advantage of using a password manager is that I can generate really long passwords. The problem here is that I cannot use a long password such as this one: eTfDc0BHuD4K5JIbeRvAfB0Xykq2XMtk34ORygYybsA2yaKkuHdgcJznSiSNjTZkyKZXaUw8UKjvKOnN

The website just refreshed and it didn't seem to create the user. After creating a user with a much shorter password (10 chars), I tried changing the password, but I got the following error: image

After trying to see, if the limit is configured somewhere, I came upon this snippet: https://github.com/productiveops/dokemon/blob/e800d3e62bc4efed59d9058998bad7f15660d851/pkg/server/handler/request_user.go#L11

This does not seem to be by design, so that's why I'm opening this issue.