Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #346 from alleyinteractive/feature/401-hook
Browse files Browse the repository at this point in the history
Add action hook for logging 401 Pico API errors
  • Loading branch information
amyevans authored Aug 2, 2021
2 parents b721eeb + f62f13c commit de12afa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/integrations/class-pico.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ public function verify_pico_user_for_sso( array $user ) {
$response = $this->verification_request( $this->verify_user_path, $payload, $credentials );

if ( 200 !== $response['status_code'] ) {
// Provide a hook for logging errors.
do_action( 'wp_irving_verify_pico_user_api_error', $response );
return false;
}

Expand Down

0 comments on commit de12afa

Please sign in to comment.