fix consumer fetching, nonce making

darcs-hash:20080602200645-84dde-c72e2e98a955bdd7768fa39da30660dfcffd0f15.gz
This commit is contained in:
Evan Prodromou 2008-06-02 16:06:45 -04:00
부모 10f9a8a125
커밋 7b24d101c0
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -358,4 +358,8 @@ class RemotesubscribeAction extends Action {
common_redirect($req->to_url());
return;
}
function make_nonce() {
return common_good_rand(16);
}
}

파일 보기

@ -26,7 +26,7 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
# We keep a record of who's contacted us
function lookup_consumer($consumer_key) {
$con = new Consumer('key', $consumer_key);
$con = Consumer::staticGet('consumer_key', $consumer_key);
if (!$con) {
$con = new Consumer();
$con->consumer_key = $consumer_key;