Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

use a better oauth nonce #3

Merged
merged 1 commit into from

2 participants

@jroes

No description provided.

@whistler whistler merged commit fe0d4da into whistler:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 23, 2013
  1. @jroes

    use a better oauth nonce

    jroes authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/fatsecret.rb
View
2  lib/fatsecret.rb
@@ -75,7 +75,7 @@ def self.get(query)
params = {
:format => 'json',
:oauth_consumer_key => @@key,
- :oauth_nonce => "1234",
+ :oauth_nonce => SecureRandom.hex,
:oauth_signature_method => SHA1,
:oauth_timestamp => Time.now.to_i,
:oauth_version => "1.0",
Something went wrong with that request. Please try again.