diff --git a/services/implementation/src/authentication_v2/auth_stages/auth_confirm.cpp b/services/implementation/src/authentication_v2/auth_stages/auth_confirm.cpp index ddd593d101593d6eff2aca73affd7668faba3b92..5b0c4014cd5f1290b5bd3140d5c2e99b11ff026f 100644 --- a/services/implementation/src/authentication_v2/auth_stages/auth_confirm.cpp +++ b/services/implementation/src/authentication_v2/auth_stages/auth_confirm.cpp @@ -1098,8 +1098,8 @@ int32_t AuthSinkConfirmState::ProcessBindAuthorize(std::shared_ptrauthType == DmAuthType::AUTH_TYPE_PIN_ULTRASONIC) && (context->serviceInfoFound || AuthSinkStatePinAuthComm::IsAuthCodeReady(context)) && context->authBoxType == DMLocalServiceInfoAuthBoxType::SKIP_CONFIRM) { - context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_RESP_USER_CONFIRM, context); context->authStateMachine->TransitionTo(std::make_shared()); + context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_RESP_USER_CONFIRM, context); return DM_OK; } if ((context->authType == DmAuthType::AUTH_TYPE_PIN || context->authType == DmAuthType::AUTH_TYPE_NFC || @@ -1135,8 +1135,8 @@ int32_t AuthSinkConfirmState::ProcessUserAuthorize(std::shared_ptrreason = ERR_DM_AUTH_PEER_REJECT; return ERR_DM_FAILED; } - context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_RESP_USER_CONFIRM, context); context->authStateMachine->TransitionTo(std::make_shared()); + context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_RESP_USER_CONFIRM, context); return DM_OK; } @@ -1265,8 +1265,8 @@ int32_t AuthSinkConfirmState::ProcessNoBindAuthorize(std::shared_ptrreason = ERR_DM_CAPABILITY_NEGOTIATE_FAILED; return ERR_DM_FAILED; } - context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_RESP_USER_CONFIRM, context); context->authStateMachine->TransitionTo(std::make_shared()); + context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_RESP_USER_CONFIRM, context); return DM_OK; } diff --git a/services/implementation/src/authentication_v2/auth_stages/auth_pin_auth.cpp b/services/implementation/src/authentication_v2/auth_stages/auth_pin_auth.cpp index e04cd9ebacbbfdfbc300fd534fd491d08780e481..f90d198f54503a3f43292930228e0ce1a3d81c17 100644 --- a/services/implementation/src/authentication_v2/auth_stages/auth_pin_auth.cpp +++ b/services/implementation/src/authentication_v2/auth_stages/auth_pin_auth.cpp @@ -652,8 +652,8 @@ int32_t AuthSrcReverseUltrasonicDoneState::Action(std::shared_ptr return DM_OK; } else if (retEvent == DmEventType::ON_ERROR) { LOGI("AuthSrcReverseUltrasonicDoneState::AuthDevice ON_ERROR failed."); - context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_REQ_PIN_AUTH_START, context); context->authStateMachine->TransitionTo(std::make_shared()); + context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_REQ_PIN_AUTH_START, context); return DM_OK; } return STOP_BIND; @@ -711,8 +711,8 @@ int32_t AuthSrcForwardUltrasonicDoneState::Action(std::shared_ptr return DM_OK; } else if (retEvent == DmEventType::ON_ERROR) { LOGI("OnPinCodeChanged ON_ERROR failed."); - context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_REQ_PIN_AUTH_START, context); context->authStateMachine->TransitionTo(std::make_shared()); + context->authMessageProcessor->CreateAndSendMsg(MSG_TYPE_REQ_PIN_AUTH_START, context); return DM_OK; } } else if (retEvent == DmEventType::ON_ULTRASONIC_PIN_TIMEOUT) {