kiran-authentication-service/0001-fix-auth-terminal-Repair-authentication-type-check.patch
liuxinhao 9ca8030f94 fix(*): Fixed an issue with the first round of test in Part 2.5
- 修复部分第一轮测试出现的问题
2023-05-31 16:27:58 +08:00

33 lines
1.2 KiB
Diff

From 313ce71e34f4af75f0b0ccbb954ffc89ff86fee6 Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Mon, 29 May 2023 20:32:15 +0800
Subject: [PATCH 1/5] fix(auth terminal): Repair authentication type check
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复命令行认证,认证类型检查问题
Closes #I792B4
---
src/pam/authentication-terminal.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/pam/authentication-terminal.cpp b/src/pam/authentication-terminal.cpp
index c6df098..5db6b1c 100644
--- a/src/pam/authentication-terminal.cpp
+++ b/src/pam/authentication-terminal.cpp
@@ -93,7 +93,8 @@ int32_t AuthenticationTerminal::requestAuthType()
authType == KADAuthType::KAD_AUTH_TYPE_FINGERPRINT ||
authType == KADAuthType::KAD_AUTH_TYPE_FINGERVEIN ||
authType == KADAuthType::KAD_AUTH_TYPE_UKEY ||
- authType == KADAuthType::KAD_AUTH_TYPE_FACE)
+ authType == KADAuthType::KAD_AUTH_TYPE_FACE ||
+ authType == KADAuthType::KAD_AUTH_TYPE_IRIS)
{
return authType;
}
--
2.33.0