mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fixes
This commit is contained in:
parent
7648b641e2
commit
46f3dec820
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ def get_required_args(args, required_args, password=False):
|
||||||
else:
|
else:
|
||||||
raise Exception #FIX
|
raise Exception #FIX
|
||||||
# Password
|
# Password
|
||||||
if 'password' not in args and password and 'password' in required_args:
|
if ('password' not in args) and ('password' in required_args) and password:
|
||||||
if os.isatty(1):
|
if os.isatty(1):
|
||||||
args['password'] = getpass.getpass(colorize(required_args['password'] + ': ', 'cyan'))
|
args['password'] = getpass.getpass(colorize(required_args['password'] + ': ', 'cyan'))
|
||||||
pwd2 = getpass.getpass(colorize('Retype ' + required_args['password'][0].lower() + required_args['password'][1:] + ': ', 'cyan'))
|
pwd2 = getpass.getpass(colorize('Retype ' + required_args['password'][0].lower() + required_args['password'][1:] + ': ', 'cyan'))
|
||||||
|
|
Loading…
Reference in a new issue