Unverified Commit 1cdc36bc authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3240192 by andypost, Berdir: \Drupal\user\AccountForm::buildEntity()...

Issue #3240192 by andypost, Berdir: \Drupal\user\AccountForm::buildEntity() causing deprecations in PHP 8.1
parent b99ec619
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/user/src/AccountForm.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ public function buildEntity(array $form, FormStateInterface $form_state) {
    }

    // Set existing password if set in the form state.
    $current_pass = trim($form_state->getValue('current_pass'));
    $current_pass = trim($form_state->getValue('current_pass', ''));
    if (strlen($current_pass) > 0) {
      $account->setExistingPassword($current_pass);
    }