Skip to content

Commit

Permalink
Fixed: missing control of password response
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi authored Mar 16, 2021
1 parent 5c717c3 commit 24e6ecd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/TerminalObject/Dynamic/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ public function prompt()
{
$this->writePrompt();

return $this->reader->hidden();
$response = $this->valueOrDefault($this->reader->hidden());

if ($this->isValidResponse($response)) {
return $response;
}

return $this->prompt();
}
}

0 comments on commit 24e6ecd

Please sign in to comment.