Skip to content

"Invalid Username" hides maximum password length error #127

@RealOrangeOne

Description

@RealOrangeOne

We are happy to answer your questions about the code or discuss technical ideas.

Please complete the following checklist (by adding [x]):

  • I have searched open and closed issues for duplicates
  • This isn't a feature request
  • This is not a report about my app not working as expected

When logging in, I got a "Invalid username" error. After some digging, it seems this happens if my password is more than 72 characters.

My guess is something on the backend has changed recently and this is now validated. However, the message is clearly not right.

I discovered this by changing the below to log as an error, and then checking the log file:

logger.debug(error, category="APP", subcategory="LOGIN", event="RESULT")

Ideally the error message would be changed to something less generic (and more correct). Not sure if this is a recent change or not? But it's definitely not just me.


As a workaround, you can change your password to one with fewer than 72 characters. However forcing users to change their password is not ideal.

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