From dd8bacfcc9f9d67fde1acb6e273690fcd7dce556 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 30 Nov 2019 18:05:36 +0100 Subject: [PATCH] Turn simple message box into a prompt when SSH tunnel asks for key passphrase. Closes #284. --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 630cd105..1b50eb45 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -897,7 +897,7 @@ begin end; if OutText <> '' then begin - if ExecRegExpr('login as\s*\:', OutText) then begin + if ExecRegExpr('(login as|Passphrase for key "[^"]+")\s*\:', OutText) then begin // Prompt for username UserInput := InputBox('PLink:', OutText, ''); SendText(UserInput + CRLF);