File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from typing import Dict , Optional , Type , cast
22
3+ from django .conf import settings
34from django .contrib .auth import authenticate , get_user_model
45from django .contrib .auth .models import AbstractUser , update_last_login
56from django .utils .translation import gettext_lazy as _
6- from django .conf import settings
77from ninja_schema import ModelSchema , Schema
88from pydantic import root_validator
99
@@ -216,8 +216,8 @@ def validate_schema(cls, values: Dict) -> dict:
216216 token = UntypedToken (values ["token" ])
217217
218218 if (
219- api_settings .BLACKLIST_AFTER_ROTATION and
220- ' ninja_jwt.token_blacklist' in settings .INSTALLED_APPS
219+ api_settings .BLACKLIST_AFTER_ROTATION
220+ and " ninja_jwt.token_blacklist" in settings .INSTALLED_APPS
221221 ):
222222 jti = token .get (api_settings .JTI_CLAIM )
223223 if BlacklistedToken .objects .filter (token__jti = jti ).exists ():
You can’t perform that action at this time.
0 commit comments