Manual password entry

merge-requests/30/head
Bob Mottram 2021-03-13 11:13:35 +00:00
parent 9e4c3e078b
commit 45e3ca7d48
1 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import shutil
import sys import sys
import time import time
import argparse import argparse
import getpass
from person import getActorJson from person import getActorJson
from person import createPerson from person import createPerson
from person import createGroup from person import createGroup
@ -1792,6 +1793,8 @@ if args.notifications:
print('Specify a nickname with the --nickname option') print('Specify a nickname with the --nickname option')
sys.exit() sys.exit()
if not args.password:
args.password = getpass.getpass('Password: ')
if not args.password: if not args.password:
print('Specify a password with the --password option') print('Specify a password with the --password option')
sys.exit() sys.exit()