1
0
Fork 0

Fix crash in token command on empty username input

This commit is contained in:
Krzysztof Sikorski 2022-03-25 22:37:00 +01:00
parent 2e9668d9d3
commit 57a14ded51
Signed by: krzysztof-sikorski
GPG Key ID: 4EB564BD08FE8476
1 changed files with 1 additions and 1 deletions

View File

@ -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);