masking password, , issue 761, thanks jlojunior

This commit is contained in:
Massimo Di Pierro
2012-04-21 12:17:42 -05:00
parent ac44f2bd00
commit 7bdb3895e2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-21 12:10:03) dev
Version 1.99.7 (2012-04-21 12:17:32) dev
+2 -1
View File
@@ -21,6 +21,7 @@ import math
import logging
import newcron
import main
import getpass
from fileutils import w2p_pack, read_file, write_file
from shell import run, test
@@ -942,7 +943,7 @@ def start(cron=True):
# ## if no tk and no password, ask for a password
if not root and options.password == '<ask>':
options.password = raw_input('choose a password:')
options.password = getpass.getpass('choose a password:')
if not options.password and not options.nobanner:
print 'no password, no admin interface'