Actually store the timestamp on each nonce

This commit is contained in:
Zach Copley 2010-02-05 01:38:29 +00:00
parent 208eec6511
commit 857494c9c6

View File

@ -65,7 +65,7 @@ class StatusNetOAuthDataStore extends OAuthDataStore
{ {
$n = new Nonce(); $n = new Nonce();
$n->consumer_key = $consumer->key; $n->consumer_key = $consumer->key;
$n->ts = $timestamp; $n->ts = common_sql_date($timestamp);
$n->nonce = $nonce; $n->nonce = $nonce;
if ($n->find(true)) { if ($n->find(true)) {
return true; return true;
@ -362,7 +362,6 @@ class StatusNetOAuthDataStore extends OAuthDataStore
array('is_local' => Notice::REMOTE_OMB, array('is_local' => Notice::REMOTE_OMB,
'uri' => $omb_notice->getIdentifierURI())); 'uri' => $omb_notice->getIdentifierURI()));
} }
/** /**