Unverified Commit cce93faf authored by Nick Santamaria's avatar Nick Santamaria Committed by GitHub
Browse files

[#3269921] by Lal_, kimberlly_amaral, Tauany Bueno, reenaraghavan, Joel...

[#3269921] by Lal_, kimberlly_amaral, Tauany Bueno, reenaraghavan, Joel Guerreiro Borghi Filho, nkoporec: Drupal 10 compatibility (#42)
parent 72d8ef56
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ function username_enumeration_prevention_pass_validate($form, FormStateInterface
    $account = user_load_by_name($name);
  }

  /** @var \Drupal\user\UserInterface $account */
  if ($account && $account->id() && $account->isActive()) {
    $form_state->setValueForElement(['#parents' => ['account']], $account);
  }