Skip to content

Maximum password length is much shorter than anticipated #42

Description

@turtureanu

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:

Password string `json:"password" validate:"min=8,max=255"`

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions