From d9d8aaa3f2dd30d691d8e90587db493dab1c941e Mon Sep 17 00:00:00 2001 From: Martin Hecht Date: Tue, 7 Apr 2020 17:23:15 +0200 Subject: [PATCH] allow logging in with smartcard and username, password --- src/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index 3420d5e0..38e72d05 100644 --- a/src/http.c +++ b/src/http.c @@ -579,8 +579,7 @@ int auth_log_in(struct tunnel *tunnel) tunnel->cookie[0] = '\0'; - if (tunnel->config->use_engine > 0 - || (username[0] == '\0' && tunnel->config->password[0] == '\0')) { + if (username[0] == '\0' && tunnel->config->password[0] == '\0') { snprintf(data, sizeof(data), "cert=&nup=1"); ret = http_request(tunnel, "GET", "/remote/login", data, &res, &response_size);