Skip to content

Commit

Permalink
remove client grant success message in log for initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Jan 31, 2018
1 parent d0c3f64 commit 0f95032
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/WP_Auth0_Api_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,6 @@ public static function create_client_grant( $app_token, $client_id ) {
return false;
}

WP_Auth0_ErrorManager::insert_auth0_error(
__METHOD__,
'Client Grant has been successfully created!'
);

return json_decode( $response['body'] );
}

Expand Down
8 changes: 8 additions & 0 deletions lib/WP_Auth0_DBManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ public function install_db( $version_to_install = null, $app_token = '' ) {
if ( $client_grant_created ) {
delete_option( 'wp_auth0_client_grant_failed' );
update_option( 'wp_auth0_client_grant_success', 1 );

if ( 409 !== $client_grant_created[ 'statusCode' ] ) {
WP_Auth0_ErrorManager::insert_auth0_error(
__METHOD__,
'Client Grant has been successfully created!'
);
}

} else {
WP_Auth0_ErrorManager::insert_auth0_error( __METHOD__, sprintf(
__( 'Unable to automatically create Client Grant. Please go to your Auth0 Dashboard '
Expand Down

0 comments on commit 0f95032

Please # to comment.