mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-23 07:39:51 +00:00
fix: AuthTypeToStr add authType
Signed-off-by: 居凯 <shun0304@126.com> Change-Id: I5b2af61c37ca4eab34b8e1a526e95269eb3feaeb
This commit is contained in:
parent
6e900b0847
commit
e54b440d9d
@ -42,7 +42,8 @@ static inline std::string GetPointerNullStateString(void *p)
|
|||||||
|
|
||||||
static inline const char *AuthTypeToStr(uint32_t authType)
|
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()) {
|
if (auto iter = typeNames.find(authType); iter != typeNames.end()) {
|
||||||
return iter->second.c_str();
|
return iter->second.c_str();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user