Skip to content

Commit

Permalink
Fix issue #3898 (#3899)
Browse files Browse the repository at this point in the history
[user:password:reset] Notice when reseting the user password
#3898
  • Loading branch information
FireGhost authored and LOBsTerr committed Jun 4, 2018
1 parent 1d08ccb commit 6264614
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Command/User/UserBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ public function getUserEntity($user)
->getStorage('user')
->load($user);
} else {
$userEntity = reset(
$this->entityTypeManager
->getStorage('user')
->loadByProperties(['name' => $user])
);
$userEntities = $this->entityTypeManager
->getStorage('user')
->loadByProperties(['name' => $user]);
$userEntity = reset($userEntities);
}

return $userEntity;
Expand Down

0 comments on commit 6264614

Please sign in to comment.