From e3116c11143e1382d41ce1de60ad5c0e989d3c7d Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Fri, 16 Dec 2022 15:47:42 +0100 Subject: [PATCH] Use valid key in user migration --- .../Bundle/CoreBundle/Migrations/Version20200206155318.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreShop/Bundle/CoreBundle/Migrations/Version20200206155318.php b/src/CoreShop/Bundle/CoreBundle/Migrations/Version20200206155318.php index 507f3f0b6d..46f942fe67 100644 --- a/src/CoreShop/Bundle/CoreBundle/Migrations/Version20200206155318.php +++ b/src/CoreShop/Bundle/CoreBundle/Migrations/Version20200206155318.php @@ -130,7 +130,7 @@ public function up(Schema $schema): void $this->container->getParameter('coreshop.folder.user'), ))); $user->setCustomer($customer); - $user->setKey($customer->getEmail()); + $user->setKey(Service::getValidKey($customer->getEmail(), 'object')); $user->save(); $doneUsers[] = $loginIdentifier;