Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve login form handling errors #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OmeGak
Copy link
Member

@OmeGak OmeGak commented Oct 10, 2024

The main goals of this PR are:

  • Include information about the user in the InvalidCredentials exception.
  • Allow applications to not reveal if there was NoSuchUser.

Comment on lines +37 to +38
self.username = username
self.identifier = identifier
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to unify these two into a single, more general attribute?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, absolutely... they're pretty much the same thing anyway

@OmeGak OmeGak changed the title Improve login form handling Improve login form handling errors Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants