Skip to content
Permalink
Browse files

Fix issue #3898 (#3899)

[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 62646146c278d0c5de2b62683dfda2fa44d9e17e
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/Command/User/UserBase.php
@@ -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;

0 comments on commit 6264614

Please sign in to comment.
You can’t perform that action at this time.