I'm using Django==4.0.3 ,djangorestframework==3.13.1 and djangorestframework-simplejwt==5.1.0 and djoser==2.1.0 I have used djoser to authenticate, and all works fine.
When the user is not active yet, the response is same as when user enter wrong password
{"detail":"No active account found with the given credentials"}
I need to customize this response. I have checked this message inside a dictionary in the class TokenObtainSerializer
default_error_messages = {
'no_active_account': _('No active account found with the given credentials')
}
have tried to override this class with no success.
Any ideas?