Skip to content

Commit

Permalink
allow logging in with smartcard and username, password
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbaseman committed Apr 17, 2020
1 parent 5fb5aea commit f43658a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f43658a

Please sign in to comment.