masking password, , issue 761, thanks jlojunior
This commit is contained in:
@@ -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
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user