From e54b440d9d36371f09985e9c61260306399198c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=85=E5=87=AF?= Date: Mon, 4 Nov 2024 14:49:32 +0800 Subject: [PATCH] fix: AuthTypeToStr add authType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 居凯 Change-Id: I5b2af61c37ca4eab34b8e1a526e95269eb3feaeb --- common/utils/iam_para2str.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/utils/iam_para2str.h b/common/utils/iam_para2str.h index 1a16647d7..0900e7b14 100644 --- a/common/utils/iam_para2str.h +++ b/common/utils/iam_para2str.h @@ -42,7 +42,8 @@ static inline std::string GetPointerNullStateString(void *p) static inline const char *AuthTypeToStr(uint32_t authType) { - static std::map typeNames = {{0, "All"}, {1, "Pin"}, {2, "Face"}, {4, "Fingerprint"}}; + static std::map typeNames = {{0, "All"}, {1, "Pin"}, {2, "Face"}, + {4, "Fingerprint"}, {8, "RecoveryKey"}}; if (auto iter = typeNames.find(authType); iter != typeNames.end()) { return iter->second.c_str(); }