66 |
return (0, 'unauthorized_client') unless $api_key && $api_key->active; |
66 |
return (0, 'unauthorized_client') unless $api_key && $api_key->active; |
68 |
return (0, 'access_denied') unless $api_key->secret eq $client_secret; |
68 |
return (0, 'access_denied') unless $api_key->validate_secret( $client_secret ); |