1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-30 13:04:27 +03:00

ssh: allow empty keyb-interactive responses - fixes #5619

This commit is contained in:
Eugene Pankov 2022-01-27 21:00:25 +01:00
parent f6eaff355b
commit b469dd603b
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

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