--- a/omaprovisioning/provisioning/ProvisioningEngine/Src/CWPPushMessage.cpp Wed Sep 01 12:27:42 2010 +0100
+++ b/omaprovisioning/provisioning/ProvisioningEngine/Src/CWPPushMessage.cpp Tue Sep 14 22:54:36 2010 +0300
@@ -1047,6 +1047,14 @@
{
if( aPIN.Length() == 0 )
{
+ TInt aSetAuthValue = 1;
+ CRepository* repository = CRepository::NewLC( KOMAProvAuthenticationLV );
+ TInt err = repository->Set(KOMAProvIsUserPin, aSetAuthValue);
+ if(err != KErrNone)
+ {
+ FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: set KOMAProvIsUserPin Failed" ) );
+ }
+ CleanupStack::PopAndDestroy(); // repository
result = KWPAuthResultPinRequired;
FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
}
@@ -1089,6 +1097,14 @@
{
if( aPIN.Length() == 0 )
{
+ TInt aSetAuthValue = 1;
+ CRepository* repository = CRepository::NewLC( KOMAProvAuthenticationLV );
+ TInt err = repository->Set(KOMAProvIsUserPin, aSetAuthValue);
+ if(err != KErrNone)
+ {
+ FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: set KOMAProvIsUserPin Failed" ) );
+ }
+ CleanupStack::PopAndDestroy(); // repository
result = KWPAuthResultPinRequired;
FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
}
@@ -1112,6 +1128,14 @@
}
else
{
+ TInt aSetAuthValue = 1;
+ CRepository* repository = CRepository::NewLC( KOMAProvAuthenticationLV );
+ TInt err = repository->Set(KOMAProvIsUserPin, aSetAuthValue);
+ if(err != KErrNone)
+ {
+ FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: set KOMAProvIsUserPin Failed" ) );
+ }
+ CleanupStack::PopAndDestroy(); // repository
result = KWPAuthResultNoAuthentication;
FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultNoAuthentication" ) );
}