From f6df93b58aa4c3929a58ee03f59b1d6ebfc08119 Mon Sep 17 00:00:00 2001 From: liuziwei Date: Fri, 20 Sep 2024 17:02:57 +0800 Subject: [PATCH] fix code Signed-off-by: liuziwei --- services/context/inc/context_factory.h | 1 + services/context/src/widget_context.cpp | 1 + services/ipc/src/user_auth_service.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/services/context/inc/context_factory.h b/services/context/inc/context_factory.h index 00ed2ca22..93ebdbef4 100644 --- a/services/context/inc/context_factory.h +++ b/services/context/inc/context_factory.h @@ -55,6 +55,7 @@ public: int32_t callerType {0}; std::string callingAppID {""}; bool isPinExpired {false}; + bool isOsAccountVerified {false}; }; static std::shared_ptr CreateSimpleAuthContext(const Authentication::AuthenticationPara ¶, diff --git a/services/context/src/widget_context.cpp b/services/context/src/widget_context.cpp index c3919c7a0..9a72f9aa8 100644 --- a/services/context/src/widget_context.cpp +++ b/services/context/src/widget_context.cpp @@ -179,6 +179,7 @@ std::shared_ptr WidgetContext::BuildTask(const std::vector &ch para.callerName = para_.callerName; para.sdkVersion = para_.sdkVersion; para.authIntent = authIntent; + para.isOsAccountVerified = para_.isOsAccountVerified; auto context = ContextFactory::CreateSimpleAuthContext(para, widgetCallback); if (context == nullptr || !ContextPool::Instance().Insert(context)) { IAM_LOGE("failed to insert context"); diff --git a/services/ipc/src/user_auth_service.cpp b/services/ipc/src/user_auth_service.cpp index 8141de38c..7d23e2728 100644 --- a/services/ipc/src/user_auth_service.cpp +++ b/services/ipc/src/user_auth_service.cpp @@ -852,6 +852,7 @@ uint64_t UserAuthService::StartWidgetContext(const std::shared_ptrSetTraceAuthFinishReason("UserAuthService InitWidgetContextParam fail");