We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff59830 commit e74f4ebCopy full SHA for e74f4eb
1 file changed
rest_framework_simplejwt/authentication.py
@@ -144,4 +144,4 @@ def default_user_authentication_rule(user):
144
# `AllowAllUsersModelBackend`. However, we explicitly prevent inactive
145
# users from authenticating to enforce a reasonable policy and provide
146
# sensible backwards compatibility with older Django versions.
147
- return True if user is not None and user.is_active else False
+ return user is not None and user.is_active
0 commit comments