Fix crash in token command on empty username input
This commit is contained in:
parent
2e9668d9d3
commit
57a14ded51
|
@ -72,7 +72,7 @@ final class UserCreateAccessTokenCommand extends Command
|
|||
|
||||
$ownerUsername = $input->getOption(self::ARGUMENT_NAME_OWNER);
|
||||
while (true) {
|
||||
if (null === $ownerUsername) {
|
||||
while (null === $ownerUsername) {
|
||||
$ownerUsername = $helper->ask($input, $output, $question);
|
||||
}
|
||||
$this->owner = $this->userRepository->findByUsername($ownerUsername);
|
||||
|
|
Reference in New Issue