]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProvider.c
Update for SecurityPkg.
[mirror_edk2.git] / SecurityPkg / UserIdentification / PwdCredentialProviderDxe / PwdCredentialProvider.c
index 0016db86636546ad987da29d3946751fd8036848..cf7fe4079ad88dfa146e8362a65cff82fae48c03 100644 (file)
@@ -548,7 +548,7 @@ CredentialDriverCallback (
   CHAR8         Password[CREDENTIAL_LEN];\r
   CHAR16        *PromptStr;\r
 \r
-  if (Action == EFI_BROWSER_ACTION_CHANGING) {\r
+  if (Action == EFI_BROWSER_ACTION_CHANGED) {\r
     if (QuestionId == KEY_GET_PASSWORD) {\r
       //\r
       // Get and check password.\r
@@ -745,7 +745,6 @@ CredentialEnroll (
   EFI_USER_INFO             *UserInfo;\r
   CHAR8                     Password[CREDENTIAL_LEN];\r
   EFI_INPUT_KEY             Key;\r
-  EFI_USER_MANAGER_PROTOCOL *UserManager;\r
   UINT8                     *UserId;\r
   CHAR16                    *QuestionStr;\r
   CHAR16                    *PromptStr;\r
@@ -754,15 +753,6 @@ CredentialEnroll (
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  Status = gBS->LocateProtocol (\r
-                  &gEfiUserManagerProtocolGuid,\r
-                  NULL,\r
-                  (VOID **) &UserManager\r
-                  );\r
-  if (EFI_ERROR (Status)) {\r
-    return EFI_UNSUPPORTED;\r
-  }\r
-\r
   //\r
   // Get User Identifier.\r
   //\r
@@ -835,11 +825,6 @@ CredentialEnroll (
     return Status;\r
   }\r
 \r
-  //\r
-  // Notify the user manager driver that credential information has changed.\r
-  //\r
-  UserManager->Notify (UserManager, mCallbackInfo->DriverHandle);  \r
-\r
   return EFI_SUCCESS;\r
 }\r
 \r