From f3b820e62cdbff3817d2582da97b04d4d9fe7493 Mon Sep 17 00:00:00 2001 From: Martin Hecht Date: Fri, 8 Mar 2019 13:27:58 +0100 Subject: [PATCH] support otp prompts starting with 'Enter' --- src/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 35e2dc23..16c87c27 100644 --- a/src/http.c +++ b/src/http.c @@ -406,10 +406,11 @@ int try_otp_auth( return -1; strncpy(path, s, e - s); path[e - s] = '\0'; - /* Try to get password prompt, asume it starts with 'Please' + /* Try to get password prompt, asume it starts with 'Please' or 'Enter' * Fall back to default prompt if not found/parseable */ p = strstr(s, "Please"); + if (p == NULL) p = strstr(s, "Enter"); if (p) { e = strchr(p, '<'); if (e != NULL) {