27 lines
982 B
Diff
27 lines
982 B
Diff
From 6c45acf841e87520a5dbe6d768ee90c39ec67f02 Mon Sep 17 00:00:00 2001
|
|
From: tanyulong2021 <tanyulong@kylinos.cn>
|
|
Date: Tue, 2 Aug 2022 10:15:43 +0800
|
|
Subject: [PATCH] solve the problem that ukui-greeter-wayland can't use
|
|
biometric authentication
|
|
|
|
---
|
|
pam-biometric/pam_biometric.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/pam-biometric/pam_biometric.c b/pam-biometric/pam_biometric.c
|
|
index 1d7dbbb..61f3dd6 100755
|
|
--- a/pam-biometric/pam_biometric.c
|
|
+++ b/pam-biometric/pam_biometric.c
|
|
@@ -425,7 +425,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
|
|
get_greeter_session(buf, sizeof(buf));
|
|
logger("current greeter: %s\n", buf);
|
|
|
|
- if(strcmp(buf, "ukui-greeter") == 0)
|
|
+ if(strcmp(buf, "ukui-greeter") == 0 || strcmp(buf, "ukui-greeter-wayland") == 0)
|
|
return biometric_auth_embeded(pamh);
|
|
// else
|
|
// return biometric_auth_independent(pamh, "lightdm", 1);
|
|
--
|
|
2.33.0
|
|
|