Skip to content

Commit

Permalink
- prompt password only if auth_user is set, but auth_pass is not (bar…
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h authored Feb 28, 2020
1 parent 1aaf932 commit 0a1e4ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/account/account.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ static int line_handler(const struct pl *addr, void *arg)
}
}

/* optional password prompt */
if (!str_isset(account_auth_pass(acc))) {
/* prompt password if auth_user is set, but auth_pass is not */
if (str_isset(account_auth_user(acc)) &&
!str_isset(account_auth_pass(acc))) {
char *pass = NULL;

(void)re_printf("Please enter password for %s: ",
Expand Down

0 comments on commit 0a1e4ea

Please sign in to comment.