We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bcab43 commit f643edeCopy full SHA for f643ede
ninja_jwt/schema.py
@@ -73,7 +73,7 @@ def validate_values(cls, values: Dict) -> dict:
73
_user = authenticate(**values)
74
cls._user = _user
75
76
- if _user is not None and _user.is_active:
+ if not (_user is not None and _user.is_active):
77
raise exceptions.AuthenticationFailed(
78
cls._default_error_messages["no_active_account"]
79
)
0 commit comments