From 61bda49a8e29ad2cc1acd9562bf5cd9b70bae0f5 Mon Sep 17 00:00:00 2001 From: e2e8 Date: Wed, 4 Sep 2019 21:03:51 -0400 Subject: [PATCH] set focus to challenge when password already filled --- openvpn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openvpn.c b/openvpn.c index 9b231ab..64527e9 100644 --- a/openvpn.c +++ b/openvpn.c @@ -470,6 +470,10 @@ UserAuthDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { SendMessage(GetDlgItem(hwndDlg, ID_EDT_AUTH_PASS), EM_SETSEL, 0, MAKELONG(0,-1)); } + else if (param->flags & FLAG_CR_TYPE_SCRV1) + { + SetFocus(GetDlgItem(hwndDlg, ID_EDT_AUTH_CHALLENGE)); + } SecureZeroMemory(password, sizeof(password)); } if (param->c->flags & FLAG_DISABLE_SAVE_PASS)