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 18fc99c commit 0bcab43Copy full SHA for 0bcab43
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 None:
+ if _user is not None and _user.is_active:
77
raise exceptions.AuthenticationFailed(
78
cls._default_error_messages["no_active_account"]
79
)
0 commit comments