mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 00:50:49 +03:00
ssh: allow empty keyb-interactive responses - fixes #5619
This commit is contained in:
parent
f6eaff355b
commit
b469dd603b
@ -40,7 +40,9 @@ export class KeyboardInteractivePrompt {
|
|||||||
public instruction: string,
|
public instruction: string,
|
||||||
public prompts: Prompt[],
|
public prompts: Prompt[],
|
||||||
private callback: (_: string[]) => void,
|
private callback: (_: string[]) => void,
|
||||||
) { }
|
) {
|
||||||
|
this.responses = new Array(this.prompts.length).fill('')
|
||||||
|
}
|
||||||
|
|
||||||
respond (): void {
|
respond (): void {
|
||||||
this.callback(this.responses)
|
this.callback(this.responses)
|
||||||
|
Loading…
Reference in New Issue
Block a user