mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
Merge deleted branch 'moonburnt-master' into beta
This commit is contained in:
commit
7cf31fe755
2 changed files with 3 additions and 3 deletions
|
@ -176,7 +176,7 @@ while frames < 60:
|
||||||
video_capture.release()
|
video_capture.release()
|
||||||
|
|
||||||
# If we've found no faces, try to determine why
|
# If we've found no faces, try to determine why
|
||||||
if face_locations is None or not face_locations:
|
if not face_locations:
|
||||||
if valid_frames == 0:
|
if valid_frames == 0:
|
||||||
print(_("Camera saw only black frames - is IR emitter working?"))
|
print(_("Camera saw only black frames - is IR emitter working?"))
|
||||||
elif valid_frames == dark_tries:
|
elif valid_frames == dark_tries:
|
||||||
|
|
|
@ -15,7 +15,7 @@ config.read(os.path.dirname(os.path.abspath(__file__)) + "/config.ini")
|
||||||
|
|
||||||
|
|
||||||
def doAuth(pamh):
|
def doAuth(pamh):
|
||||||
"""Starts authentication in a seperate process"""
|
"""Starts authentication in a separate process"""
|
||||||
|
|
||||||
# Abort if Howdy is disabled
|
# Abort if Howdy is disabled
|
||||||
if config.getboolean("core", "disabled"):
|
if config.getboolean("core", "disabled"):
|
||||||
|
@ -103,7 +103,7 @@ def doAuth(pamh):
|
||||||
syslog.closelog()
|
syslog.closelog()
|
||||||
return pamh.PAM_SUCCESS
|
return pamh.PAM_SUCCESS
|
||||||
|
|
||||||
# Otherwise, we can't discribe what happend but it wasn't successful
|
# Otherwise, we can't describe what happened but it wasn't successful
|
||||||
pamh.conversation(pamh.Message(pamh.PAM_ERROR_MSG, "Unknown error: " + str(status)))
|
pamh.conversation(pamh.Message(pamh.PAM_ERROR_MSG, "Unknown error: " + str(status)))
|
||||||
syslog.syslog(syslog.LOG_INFO, "Failure, unknown error" + str(status))
|
syslog.syslog(syslog.LOG_INFO, "Failure, unknown error" + str(status))
|
||||||
syslog.closelog()
|
syslog.closelog()
|
||||||
|
|
Loading…
Reference in a new issue