Fix random stuff I broke
This commit is contained in:
parent
2c46b5a6b5
commit
3d5b5f1acb
@ -112,10 +112,10 @@ class OauthCallbackView(GenericAPIView):
|
|||||||
if scope is not None and "google" in scope:
|
if scope is not None and "google" in scope:
|
||||||
# Google
|
# Google
|
||||||
# Gmail setup guide: https://postmansmtp.com/how-to-configure-post-smtp-with-gmailgsuite-using-oauth/
|
# Gmail setup guide: https://postmansmtp.com/how-to-configure-post-smtp-with-gmailgsuite-using-oauth/
|
||||||
account_type = MailAccount.AccountType.GMAIL
|
account_type = MailAccount.MailAccountType.GMAIL
|
||||||
imap_server = "imap.gmail.com"
|
imap_server = "imap.gmail.com"
|
||||||
defaults = {
|
defaults = {
|
||||||
"name": f"Gmail OAuth {datetime.now()}",
|
"name": f"Gmail OAuth {timezone.now()}",
|
||||||
"username": "",
|
"username": "",
|
||||||
"imap_security": MailAccount.ImapSecurity.SSL,
|
"imap_security": MailAccount.ImapSecurity.SSL,
|
||||||
"imap_port": 993,
|
"imap_port": 993,
|
||||||
@ -129,10 +129,10 @@ class OauthCallbackView(GenericAPIView):
|
|||||||
elif scope is None:
|
elif scope is None:
|
||||||
# Outlook
|
# Outlook
|
||||||
# Outlok setup guide: https://medium.com/@manojkumardhakad/python-read-and-send-outlook-mail-using-oauth2-token-and-graph-api-53de606ecfa1
|
# Outlok setup guide: https://medium.com/@manojkumardhakad/python-read-and-send-outlook-mail-using-oauth2-token-and-graph-api-53de606ecfa1
|
||||||
account_type = MailAccount.AccountType.OUTLOOK
|
account_type = MailAccount.MailAccountType.OUTLOOK
|
||||||
imap_server = "outlook.office365.com"
|
imap_server = "outlook.office365.com"
|
||||||
defaults = {
|
defaults = {
|
||||||
"name": f"Outlook OAuth {datetime.now()}",
|
"name": f"Outlook OAuth {timezone.now()}",
|
||||||
"username": "",
|
"username": "",
|
||||||
"imap_security": MailAccount.ImapSecurity.SSL,
|
"imap_security": MailAccount.ImapSecurity.SSL,
|
||||||
"imap_port": 993,
|
"imap_port": 993,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user