Merge pull request #1720 from pi-hole/fix/pw_log

Remove left-over debug output
This commit is contained in:
DL6ER 2023-10-31 20:43:05 +01:00 committed by GitHub
commit 5ca121cc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -484,9 +484,8 @@ int api_auth(struct ftl_conn *api)
// - Client tries to authenticate using a password, or
// - There no password on this machine
enum password_result result = PASSWORD_INCORRECT;
// If there is no password (or empty), check if there is any password at all
log_info("Password: \"%s\"", password);
if(empty_password && (password == NULL || strlen(password) == 0))
result = PASSWORD_CORRECT;
else