File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2
2
# Press CTRL + X to save in the nano editor
3
3
4
4
[core]
5
+ # Print that face detection is being attempted
6
+ show_detection_attempt = false
7
+
5
8
# Do not print anything when a face verification succeeds
6
9
no_confirmation = false
7
10
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ def doAuth(pamh):
25
25
if "SSH_CONNECTION" in os .environ or "SSH_CLIENT" in os .environ or "SSHD_OPTS" in os .environ :
26
26
sys .exit (0 )
27
27
28
+ # Alert the user that we are doing face detection
29
+ if config .get ("core" , "show_detection_attempt" ) == "true" :
30
+ pamh .conversation (pamh .Message (pamh .PAM_TEXT_INFO , "Attempting face detection" ))
31
+
28
32
# Run compare as python3 subprocess to circumvent python version and import issues
29
33
status = subprocess .call (["/usr/bin/python3" , os .path .dirname (os .path .abspath (__file__ )) + "/compare.py" , pamh .get_user ()])
30
34
You can’t perform that action at this time.
0 commit comments