Skip to content

Commit

Permalink
Remove unnecessary/incorrect consumer owner_id/user_id lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstenta committed Nov 6, 2023
1 parent 0df3970 commit 97cf31b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion modules/core/api/farm_api.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function farm_api_post_update_enable_default_consumer_module(&$sandbox = NULL) {
// Update values on the consumer.
/** @var \Drupal\consumers\Entity\ConsumerInterface $farm_default */
$farm_default = reset($consumers);
$farm_default->set('user_id', NULL);
$farm_default->set('grant_types', ['authorization_code', 'refresh_token', 'password']);
$farm_default->save();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ function farm_api_default_consumer_install() {
],
'redirect' => $base_url,
'is_default' => TRUE,
'owner_id' => NULL,
'secret' => NULL,
'confidential' => FALSE,
'third_party' => FALSE,
Expand Down
1 change: 0 additions & 1 deletion modules/core/fieldkit/farm_fieldkit.install
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function farm_fieldkit_install() {
'scopes' => array_values($scope_ids),
'redirect' => 'https://farmOS.app',
'allowed_origins' => 'https://farmos.app',
'owner_id' => NULL,
'secret' => NULL,
'confidential' => FALSE,
'third_party' => FALSE,
Expand Down
1 change: 0 additions & 1 deletion modules/core/fieldkit/farm_fieldkit.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function farm_fieldkit_post_update_enable_password_grant(&$sandbox = NULL) {
if (!empty($consumers)) {
/** @var \Drupal\consumers\Entity\ConsumerInterface $fieldkit */
$fieldkit = reset($consumers);
$fieldkit->set('user_id', NULL);
$fieldkit->set('grant_types', ['refresh_token', 'password']);
$fieldkit->set('scopes', array_values($scope_ids));
$fieldkit->save();
Expand Down

0 comments on commit 97cf31b

Please sign in to comment.