Skip to content

Commit 0bcab43

Browse files
authored
Update schema.py
1 parent 18fc99c commit 0bcab43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja_jwt/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def validate_values(cls, values: Dict) -> dict:
7373
_user = authenticate(**values)
7474
cls._user = _user
7575

76-
if _user is None:
76+
if _user is not None and _user.is_active:
7777
raise exceptions.AuthenticationFailed(
7878
cls._default_error_messages["no_active_account"]
7979
)

0 commit comments

Comments
 (0)