Browse Source

modify cli.get_password

add lenght=None as argument to comply with testing
oz123 11 years ago
parent
commit
ba3a04681f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pwman/ui/cli.py

+ 2 - 2
pwman/ui/cli.py

@@ -889,9 +889,9 @@ class BaseCommands(PwmanCliOld):
 
     def get_password(self, argsgiven, numerics=False, leetify=False,
                      symbols=False, special_signs=False,
-                     reader=getpass.getpass):
+                     reader=getpass.getpass, length=None):
         return tools.getpassword("Password (Blank to generate): ",
-                                 reader=reader)
+                                 reader=reader, length=length)
 
 
 class Aliases(BaseCommands, PwmanCliOld):