Wrong error msg for inactive users

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Django

    The Web framework for perfectionists with deadlines.

  • I posted about this on SO but there hasn't been much response. I'm not sure if I'm seeing an bug with Django or if I'm not understanding the situation correctly. I believe that if you install Django and set up a very basic app with a login and logout page, the following will happen. Create an admin and a regular user. User logs in ok. In the admin panel, switch the user to inactive. Now when the user tries to log in, they will get a message saying that their username or password is incorrect. I believe they should get a different error message "this account is inactive." I believe this is what is supposed to happen looking at the authentication form: https://github.com/django/django/blob/main/django/contrib/auth/forms.py

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts