Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-13 00:10:39 +02:00
parent 09639fd5c9
commit 4c7f5b6c9a

View File

@ -16,7 +16,6 @@ def add_parsers(subparsers):
# pwnagotchi plugins search
parser_google_auth = google_subparsers.add_parser('auth', help='Google Authentication')
parser_google_auth.add_argument('bool', type=bool, help="This will start the authentication process")
return subparsers
@ -33,14 +32,13 @@ def handle_cmd(args):
Parses the arguments and does the thing the user wants
"""
if args.plugincmd == 'auth':
return auth(args.bool)
return auth()
elif args.plugincmd == 'refresh':
return refresh(args)
raise NotImplementedError()
def auth(args):
if args == "true":
def auth():
# start authentication process
user_input = input("By completing these steps you give pwnagotchi access to your personal Google Drive!\n"
"Personal credentials will be stored only locally for automated verification in the future.\n"