X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FCommand%2FShowUserCommand.php;h=c95efbf3acb10ba3964267c2344d8e0393058ac6;hb=refs%2Fpull%2F4150%2Fhead;hp=33888fa3f738b38897b356816cd67d5b06cb816b;hpb=d58199f3624c1cca1f851b4af5b8c88dea613a3b;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php index 33888fa3..c95efbf3 100644 --- a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php +++ b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php @@ -52,12 +52,13 @@ class ShowUserCommand extends ContainerAwareCommand private function showUser(User $user) { $this->io->listing([ - sprintf('Username : %s', $user->getUsername()), - sprintf('Email : %s', $user->getEmail()), - sprintf('Display name : %s', $user->getName()), - sprintf('Creation date : %s', $user->getCreatedAt()->format('Y-m-d H:i:s')), - sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'), - sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no'), + sprintf('Username: %s', $user->getUsername()), + sprintf('Email: %s', $user->getEmail()), + sprintf('Display name: %s', $user->getName()), + sprintf('Creation date: %s', $user->getCreatedAt()->format('Y-m-d H:i:s')), + sprintf('Last login: %s', null !== $user->getLastLogin() ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'), + sprintf('2FA (email) activated: %s', $user->isEmailTwoFactor() ? 'yes' : 'no'), + sprintf('2FA (OTP) activated: %s', $user->isGoogleAuthenticatorEnabled() ? 'yes' : 'no'), ]); } @@ -72,9 +73,4 @@ class ShowUserCommand extends ContainerAwareCommand { return $this->getContainer()->get('wallabag_user.user_repository')->findOneByUserName($username); } - - private function getDoctrine() - { - return $this->getContainer()->get('doctrine'); - } }