0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-12 09:41:18 +02:00

Fixup: don't else after return and no det. notice

This commit is contained in:
Anton Golubev 2023-09-06 11:49:43 +03:00
parent a5184dc663
commit 40720bbf87
No known key found for this signature in database
GPG key ID: F5397AE7206DF509
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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");