typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
424 stars 60 forks source link

Password constraints are not obvious #430

Closed barryhughes closed 4 months ago

barryhughes commented 4 months ago

Using TypeMill 2.0.3, I started setting things up locally. I used my password manager to generate a password:

typemill-setup-admin

Then I was taken to /tm/login and asked to login. I tried, but got a Wrong password or username error:

typemill-login

I was a little confused, and spun my wheels trying to figure this out a little. The problem seemed to be because when the inputs are validated it is enforcing a rule that passwords must be between 5 - 20 characters in length.

20 characters seems like quite a low limit—it is definitely below the password defaults I set up in my password manager—but ignoring that: there is no feedback to make it clear that this expectation was not met. It feels like this feedback should be given during the setup stage, before the new admin account is created.

barryhughes commented 4 months ago

Poking around a little more, this might be because the password constraints are different during signup? Looks we allow upto 40 chars at this stage.