Skip to content

Return appropriate error for unactivated users #537

Open
@old-joker

Description

@old-joker

I am using Django 4.0 and Djoser 2.1.0 but when trying to get JWT token for an inactive user, it returns the same error as using a wrong password which makes it tricky to differentiate. I get HTTP STATUS 401 with the detail below

{ "detail": "No active account found with the given credentials }

how can i change it to check user activation status and not registered user
or add some feature to set check activation status of users

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions