Issue #3444978 by catch, Berdir: UserAuth BC layer is not working for modules...
Issue #3444978 by catch, Berdir: UserAuth BC layer is not working for modules that use it to provide email based logins
(cherry picked from commit 26208e91)
@trigger_error(__CLASS__.' is deprecated in drupal:10.3.0 and will be removed from drupal:12.0.0. Implement \Drupal\user\UserAuthenticationInterface instead. See https://www.drupal.org/node/3411040');
$this->entityTypeManager=$entity_type_manager;
$this->passwordChecker=$password_checker;
}
@@ -48,41 +49,20 @@ public function authenticate($username, #[\SensitiveParameter] $password) {
@trigger_error(__METHOD__.' is deprecated in drupal:10.3.0 and will be removed from drupal:12.0.0. Implement \Drupal\user\UserAuthenticationInterface instead. See https://www.drupal.org/node/3411040');