Skip to content

Commit 8246ae5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 22e6deb commit 8246ae5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rest_framework_simplejwt/serializers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def validate(self, attrs: dict[str, Any]) -> dict[str, str]:
131131
)
132132

133133
if api_settings.CHECK_REVOKE_TOKEN:
134-
if refresh.payload.get(api_settings.REVOKE_TOKEN_CLAIM) != get_md5_hash_password(user.password):
134+
if refresh.payload.get(
135+
api_settings.REVOKE_TOKEN_CLAIM
136+
) != get_md5_hash_password(user.password):
135137
# If the password has changed, we blacklist the token
136138
# to prevent any further use.
137139
if (
@@ -198,7 +200,9 @@ def validate(self, attrs: dict[str, Any]) -> dict[str, str]:
198200
)
199201

200202
if api_settings.CHECK_REVOKE_TOKEN:
201-
if token.payload.get(api_settings.REVOKE_TOKEN_CLAIM) != get_md5_hash_password(user.password):
203+
if token.payload.get(
204+
api_settings.REVOKE_TOKEN_CLAIM
205+
) != get_md5_hash_password(user.password):
202206
# If the password has changed, we blacklist the token
203207
# to prevent any further use.
204208
if (

0 commit comments

Comments
 (0)