Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flask_oauthlib/provider/oauth1.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,12 +725,12 @@ def validate_timestamp_and_nonce(self, client_key, timestamp, nonce,
access_token=None):
"""Validate the timestamp and nonce is used or not."""
log.debug('Validate timestamp and nonce %r', client_key)
nonce = self._noncegetter(
nonce_exists = self._noncegetter(
client_key=client_key, timestamp=timestamp,
nonce=nonce, request_token=request_token,
access_token=access_token
)
if nonce:
if nonce_exists:
return False
self._noncesetter(
client_key=client_key, timestamp=timestamp,
Expand Down