mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -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"
|
||||
|
Reference in New Issue
Block a user