Skip to content

Commit 6264614

Browse files
FireGhostLOBsTerr
authored andcommitted
Fix issue #3898 (#3899)
[user:password:reset] Notice when reseting the user password #3898
1 parent 1d08ccb commit 6264614

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Command/User/UserBase.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ public function getUserEntity($user)
4242
->getStorage('user')
4343
->load($user);
4444
} else {
45-
$userEntity = reset(
46-
$this->entityTypeManager
47-
->getStorage('user')
48-
->loadByProperties(['name' => $user])
49-
);
45+
$userEntities = $this->entityTypeManager
46+
->getStorage('user')
47+
->loadByProperties(['name' => $user]);
48+
$userEntity = reset($userEntities);
5049
}
5150

5251
return $userEntity;

0 commit comments

Comments
 (0)