mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -48,11 +48,11 @@ def auth():
|
|||||||
"No one else but you have access to these.\n"
|
"No one else but you have access to these.\n"
|
||||||
"Do you agree? \n\n[y(es)/n(o)]")
|
"Do you agree? \n\n[y(es)/n(o)]")
|
||||||
if user_input.lower() in ('y', 'yes'):
|
if user_input.lower() in ('y', 'yes'):
|
||||||
try:
|
|
||||||
gauth = GoogleAuth(settings_file="settings.yaml")
|
|
||||||
if not os.path.exists("/root/client_secrets.json"):
|
if not os.path.exists("/root/client_secrets.json"):
|
||||||
logging.error("client_secrets.json not found in /root. Please RTFM!")
|
logging.error("client_secrets.json not found in /root. Please RTFM!")
|
||||||
return 0
|
return 0
|
||||||
|
try:
|
||||||
|
gauth = GoogleAuth(settings_file="settings.yaml")
|
||||||
print(gauth.GetAuthUrl())
|
print(gauth.GetAuthUrl())
|
||||||
user_input = input("Please copy this URL into a browser, "
|
user_input = input("Please copy this URL into a browser, "
|
||||||
"complete the verification and then copy/paste the code from addressbar.")
|
"complete the verification and then copy/paste the code from addressbar.")
|
||||||
|
Reference in New Issue
Block a user