Gmail.py use hardcoded url variable 1/2
This patch sets the url variable to the hardcoded value. Then call the self.setoauth2_request_url(url) function.
This commit is contained in:
parent
b175f7a698
commit
6b9f37e317
@ -58,7 +58,8 @@ class GmailRepository(IMAPRepository):
|
||||
url = super().getoauth2_request_url()
|
||||
if url is None:
|
||||
# Nothing was configured, cache and return hardcoded one.
|
||||
self.setoauth2_request_url("https://accounts.google.com/o/oauth2/token")
|
||||
url = "https://accounts.google.com/o/oauth2/token"
|
||||
self.setoauth2_request_url(url)
|
||||
else:
|
||||
self.setoauth2_request_url(url)
|
||||
return self.oauth2_request_url
|
||||
|
Loading…
Reference in New Issue
Block a user