Skip to content
Snippets Groups Projects

Issue #3295038: Automated Drupal 10 compatibility fixes

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -21,6 +21,7 @@ use Drupal\user\Entity\User;
use Drupal\user\UserInterface;
use Drupal\decoupled_auth\Form\UserPasswordFormAlter;
use Drupal\decoupled_auth\Form\UserLoginFormAlter;
use Drupal\Core\Password\PasswordGeneratorInterface;
/**
* Implements hook_entity_type_build().
@@ -220,7 +221,7 @@ function decoupled_auth_form_user_form_entity_build($entity_type, $entity, &$for
else {
$entity->couple();
if (!$entity->getAccountName()) {
$entity->set('name', 'email_registration_' . user_password());
$entity->set('name', 'email_registration_' . generate());
}
}
}
Loading