Skip to content
Snippets Groups Projects
Commit a75cab24 authored by cpilaszewicz's avatar cpilaszewicz
Browse files

Use proper imap/smtp setting for google account

parent 3de0b8d3
No related branches found
No related tags found
4 merge requests!58Onboarding screens swift ui merge dev,!55WIP: Resolve "UI for gamifcation & stats",!47Provisional fix for OpenSSL 1.1+, needs testing,!39Resolve "Restructure Authentication"
......@@ -63,9 +63,9 @@ class AuthenticationViewModel : ObservableObject {
print("Google authetication failed")
return
}
let mailAccount = MailAccount(emailAddress: userEmail.lowercased(), password: "", username: userEmail.lowercased(), imapServer: "imap.gmail.com", imapPort: 993, imapEncryption: 2, smtpServer: "smtp.gmail.com", smtpPort: 587, smtpEncryption: 1, authType: MCOAuthType.xoAuth2.rawValue)
let mailAccount = MailAccount(emailAddress: userEmail.lowercased(), password: "", username: userEmail.lowercased(), imapServer: "imap.gmail.com", imapPort: 993, imapEncryption: 1 << 2, smtpServer: "smtp.gmail.com", smtpPort: 587, smtpEncryption: 1 << 1, authType: MCOAuthType.xoAuth2.rawValue)
self.cancellable = self.model.checkConfig(mailAccount: mailAccount, extendedValidation: false).sink { promise in
self.cancellable = self.model.checkConfig(mailAccount: mailAccount, extendedValidation: true).sink { promise in
switch promise {
case AuthenticationModel.AuthenticationResult.Success :
self.authenticationSucceed()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment