diff --git a/howdy/src/config.ini b/howdy/src/config.ini index 0514f3e..27ab823 100644 --- a/howdy/src/config.ini +++ b/howdy/src/config.ini @@ -3,7 +3,7 @@ [core] # Print that face detection is being attempted -detection_notice = true +detection_notice = false # Print that face detection has timed out timeout_notice = true diff --git a/howdy/src/pam/main.cc b/howdy/src/pam/main.cc index 89c7e98..69d9d53 100644 --- a/howdy/src/pam/main.cc +++ b/howdy/src/pam/main.cc @@ -256,7 +256,9 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv, if (!std::ifstream(model_path)) { return howdy_status(username, CompareError::NO_FACE_MODEL, config, conv_function); - } else if (config.GetBoolean("core", "detection_notice", true)) { + } + + if (config.GetBoolean("core", "detection_notice", true)) { if ((conv_function(PAM_TEXT_INFO, S("Attempting facial authentication"))) != PAM_SUCCESS) { syslog(LOG_ERR, "Failed to send detection notice");