Skip to content

Commit

Permalink
Update schema.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eadwinCode authored Mar 18, 2023
1 parent 0bcab43 commit f643ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja_jwt/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def validate_values(cls, values: Dict) -> dict:
_user = authenticate(**values)
cls._user = _user

if _user is not None and _user.is_active:
if not (_user is not None and _user.is_active):
raise exceptions.AuthenticationFailed(
cls._default_error_messages["no_active_account"]
)
Expand Down

0 comments on commit f643ede

Please sign in to comment.