Skip to content

Commit

Permalink
Fixed: missing control of password response (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi authored Oct 30, 2024
1 parent b06b9b0 commit 9768e91
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 9768e91

Please sign in to comment.