Commits

Marcin Kasperski  committed b067a4c

(bitbucket #1) Documentation contained wrong example of using set_password

  • Participants
  • Parent commits 458c00e

Comments (0)

Files changed (2)

             $password = <somehow interactively prompt for password>;
 
             # securely save password for future use
-            $keyring->set_password($username, "blahblah.com");
+            $keyring->set_password($username, $password, "blahblah.com");
         }
 
         login_somewhere_using($username, $password);

File lib/Passwd/Keyring/KDEWallet.pm

         $password = <somehow interactively prompt for password>;
 
         # securely save password for future use
-        $keyring->set_password($username, "blahblah.com");
+        $keyring->set_password($username, $password, "blahblah.com");
     }
 
     login_somewhere_using($username, $password);