mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -86,14 +86,15 @@ def refresh():
|
|||||||
except pydrive2.auth.RefreshError:
|
except pydrive2.auth.RefreshError:
|
||||||
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.\n\n"
|
||||||
|
"Code: ")
|
||||||
gauth.Auth(user_input)
|
gauth.Auth(user_input)
|
||||||
else:
|
else:
|
||||||
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.\n\n"
|
||||||
|
"Code: ")
|
||||||
gauth.Auth(user_input)
|
gauth.Auth(user_input)
|
||||||
gauth.Authorize()
|
gauth.Authorize()
|
||||||
gauth.SaveCredentialsFile("credentials.json")
|
|
||||||
print("No refresh is required.")
|
print("No refresh is required.")
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user