Skip to content

Commit 1502ab4

Browse files
committed
nonce parameter was getting clobbered by a local variable name
1 parent 0febe65 commit 1502ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_oauthlib/provider/oauth1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,12 +725,12 @@ def validate_timestamp_and_nonce(self, client_key, timestamp, nonce,
725725
access_token=None):
726726
"""Validate the timestamp and nonce is used or not."""
727727
log.debug('Validate timestamp and nonce %r', client_key)
728-
nonce = self._noncegetter(
728+
nonce_exists = self._noncegetter(
729729
client_key=client_key, timestamp=timestamp,
730730
nonce=nonce, request_token=request_token,
731731
access_token=access_token
732732
)
733-
if nonce:
733+
if nonce_exists:
734734
return False
735735
self._noncesetter(
736736
client_key=client_key, timestamp=timestamp,

0 commit comments

Comments
 (0)