Skip to content

Commit 11f7f39

Browse files
committed
Fixes #23824: User data serialised multiple times on save when loaded via loadByUsername.
Unserialises the extra data when loading a user using the loadByUsername method of the User model.
1 parent f94b4a8 commit 11f7f39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/User/Model/User.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,10 @@ public function loadByUsername($username)
671671
{
672672
$data = $this->getResource()->loadByUsername($username);
673673
if ($data !== false) {
674+
if (is_string($data['extra'])) {
675+
$data['extra'] = $this->serializer->unserialize($data['extra']);
676+
}
677+
674678
$this->setData($data);
675679
$this->setOrigData();
676680
}

0 commit comments

Comments
 (0)