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 9, 2020
1 parent 8dab327 commit d9d8aaa
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 @@ -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);
Expand Down

0 comments on commit d9d8aaa

Please sign in to comment.