Permalink
Browse files

restore couch_util:verify call in oauth.

  • Loading branch information...
rnewson committed Oct 13, 2011
1 parent 28f80ae commit 43c4f12276c71bac6d15c3290f31cb9f5a393ca2
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/erlang-oauth/oauth_hmac_sha1.erl
  2. +1 −1 src/erlang-oauth/oauth_plaintext.erl
@@ -8,4 +8,4 @@ signature(BaseString, CS, TS) ->
base64:encode_to_string(crypto:sha_mac(Key, BaseString)).
verify(Signature, BaseString, CS, TS) ->
- Signature =:= signature(BaseString, CS, TS).
+ couch_util:verify(Signature, signature(BaseString, CS, TS)).
@@ -7,4 +7,4 @@ signature(CS, TS) ->
oauth_uri:calate("&", [CS, TS]).
verify(Signature, CS, TS) ->
- Signature =:= signature(CS, TS).
+ couch_util:verify(Signature, signature(CS, TS)).

0 comments on commit 43c4f12

Please sign in to comment.