From abf1a95461418ae18a6413ad332b79be19cd8b97 Mon Sep 17 00:00:00 2001 From: Martin Hecht <mrbaseman@gmx.de> Date: Fri, 17 Apr 2020 16:37:55 +0200 Subject: [PATCH] allow logging in with smartcard and username + password (#631) --- src/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index e32ecf9..e8f70e5 100644 --- a/src/http.c +++ b/src/http.c @@ -605,8 +605,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); -- GitLab