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:
parent
a5184dc663
commit
40720bbf87
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
# Print that face detection is being attempted
|
# Print that face detection is being attempted
|
||||||
detection_notice = true
|
detection_notice = false
|
||||||
|
|
||||||
# Print that face detection has timed out
|
# Print that face detection has timed out
|
||||||
timeout_notice = true
|
timeout_notice = true
|
||||||
|
|
|
@ -256,7 +256,9 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv,
|
||||||
if (!std::ifstream(model_path)) {
|
if (!std::ifstream(model_path)) {
|
||||||
return howdy_status(username, CompareError::NO_FACE_MODEL, config,
|
return howdy_status(username, CompareError::NO_FACE_MODEL, config,
|
||||||
conv_function);
|
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"))) !=
|
if ((conv_function(PAM_TEXT_INFO, S("Attempting facial authentication"))) !=
|
||||||
PAM_SUCCESS) {
|
PAM_SUCCESS) {
|
||||||
syslog(LOG_ERR, "Failed to send detection notice");
|
syslog(LOG_ERR, "Failed to send detection notice");
|
||||||
|
|
Loading…
Reference in a new issue