Skip to content

Commit 9768e91

Browse files
authored
Fixed: missing control of password response (#171)
1 parent b06b9b0 commit 9768e91

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/TerminalObject/Dynamic/Password.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ public function prompt()
88
{
99
$this->writePrompt();
1010

11-
return $this->reader->hidden();
11+
$response = $this->valueOrDefault($this->reader->hidden());
12+
13+
if ($this->isValidResponse($response)) {
14+
return $response;
15+
}
16+
17+
return $this->prompt();
1218
}
1319
}

0 commit comments

Comments
 (0)