Skip to content

Commit

Permalink
Merge pull request #108 from Galfurian/develop
Browse files Browse the repository at this point in the history
Disable output of username and password.
  • Loading branch information
Galfurian authored Oct 3, 2024
2 parents bee49fb + eac1a76 commit be63f2a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions programs/login.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,13 @@ int main(int argc, char **argv)
do {
puts("Username: ");
} while (read_input(username, CREDENTIALS_LENGTH, 1) <= 0);
pr_crit("|%s|\n", username);

printf("Password: ");
if (read_input(password, CREDENTIALS_LENGTH, 0) < 0) {
fprintf(stderr, "Error reading password\n");
return EXIT_FAILURE;
}
putchar('\n');
pr_crit("|%s|\n", password);

__set_echo(true);

Expand Down

0 comments on commit be63f2a

Please sign in to comment.