fix: AuthTypeToStr add authType

Signed-off-by: 居凯 <shun0304@126.com>
Change-Id: I5b2af61c37ca4eab34b8e1a526e95269eb3feaeb
This commit is contained in:
居凯 2024-11-04 14:49:32 +08:00
parent 6e900b0847
commit e54b440d9d

View File

@ -42,7 +42,8 @@ static inline std::string GetPointerNullStateString(void *p)
static inline const char *AuthTypeToStr(uint32_t authType)
{
static std::map<uint32_t, std::string> typeNames = {{0, "All"}, {1, "Pin"}, {2, "Face"}, {4, "Fingerprint"}};
static std::map<uint32_t, std::string> 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();
}