Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 7, 2024
1 parent adefffe commit 18f62dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rest_framework_simplejwt/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,6 @@ def default_user_authentication_rule(user: AuthUser) -> bool:
# `AllowAllUsersModelBackend`. However, we explicitly prevent inactive
# users from authenticating to enforce a reasonable policy and provide
# sensible backwards compatibility with older Django versions.
return user is not None and (not api_settings.CHECK_USER_IS_ACTIVE or user.is_active)
return user is not None and (
not api_settings.CHECK_USER_IS_ACTIVE or user.is_active
)

0 comments on commit 18f62dc

Please sign in to comment.