diff --git a/src/Command/User/SetPasswordCommand.php b/src/Command/User/SetPasswordCommand.php index f36a2b24..3a738ef8 100644 --- a/src/Command/User/SetPasswordCommand.php +++ b/src/Command/User/SetPasswordCommand.php @@ -56,7 +56,7 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; class SetPasswordCommand extends Command { - protected static $defaultName = 'partdb:users:set-password|app:set-password|users:set-password'; + protected static $defaultName = 'partdb:users:set-password|app:set-password|users:set-password|partdb:user:set-password'; protected EntityManagerInterface $entityManager; protected UserPasswordHasherInterface $encoder; diff --git a/src/Command/User/UserListCommand.php b/src/Command/User/UserListCommand.php index 61d6a6d6..8c3f2e12 100644 --- a/src/Command/User/UserListCommand.php +++ b/src/Command/User/UserListCommand.php @@ -43,7 +43,7 @@ class UserListCommand extends Command $io->title('Users:'); $table = new Table($output); - $table->setHeaders(['ID', 'Username', 'Name', 'Email', 'Group']); + $table->setHeaders(['ID', 'Username', 'Name', 'Email', 'Group', 'Login Disabled']); foreach ($users as $user) { $table->addRow([ @@ -52,6 +52,7 @@ class UserListCommand extends Command $user->getFullName(), $user->getEmail(), $user->getGroup() !== null ? $user->getGroup()->getName() . ' (ID: ' . $user->getGroup()->getID() . ')' : 'No group', + $user->isDisabled() ? 'Yes' : 'No', ]); } diff --git a/src/Command/User/UsersPermissionsCommand.php b/src/Command/User/UsersPermissionsCommand.php index 612aa83a..0d07a821 100644 --- a/src/Command/User/UsersPermissionsCommand.php +++ b/src/Command/User/UsersPermissionsCommand.php @@ -18,7 +18,7 @@ use Symfony\Contracts\Translation\TranslatorInterface; class UsersPermissionsCommand extends Command { - protected static $defaultName = 'partdb:users:permissions'; + protected static $defaultName = 'partdb:users:permissions|partdb:user:permissions'; protected static $defaultDescription = 'View and edit the permissions of a given user'; protected EntityManagerInterface $entityManager;