Password no longer required

This commit is contained in:
jeancf 2022-11-30 13:17:04 +01:00
parent 8ca17bef58
commit 9caa7ce1ef

View File

@ -159,9 +159,6 @@ def build_config(args):
if 'mastodon_user' not in TOML['config'].keys() or TOML['config']['mastodon_user'] == "": if 'mastodon_user' not in TOML['config'].keys() or TOML['config']['mastodon_user'] == "":
print('CRITICAL: Missing Mastodon user') print('CRITICAL: Missing Mastodon user')
exit(-1) exit(-1)
if args['p'] is None:
print('CRITICAL: Missing Mastodon user password')
exit(-1)
def deredir_url(url): def deredir_url(url):
@ -527,7 +524,7 @@ def login(password):
logging.fatal(me) logging.fatal(me)
exit(-1) exit(-1)
else: else:
logging.fatal('No secret file found. Password required to log in') logging.fatal('No .secret file found. Password required to log in')
exit(-1) exit(-1)
return mastodon return mastodon