generators/oauth_provider/templates/request_token.rb in oauth-plugin-0.3.14 vs generators/oauth_provider/templates/request_token.rb in oauth-plugin-0.4.0.pre1
- old
+ new
@@ -4,10 +4,10 @@
def authorize!(user)
return false if authorized?
self.user = user
self.authorized_at = Time.now
- self.verifier=OAuth::Helper.generate_key(16)[0,20] unless oauth10?
+ self.verifier=OAuth::Helper.generate_key(20)[0,20] unless oauth10?
self.save
end
def exchange!
return false unless authorized?
\ No newline at end of file