From 2338a8d35e938a296ed862017bb10510e4296fb4 Mon Sep 17 00:00:00 2001
From: Jacob Freise <jacob.freise@fu-berlin.de>
Date: Tue, 10 Mar 2020 13:56:48 +0100
Subject: [PATCH] fix standard port and button names

---
 enzevalos_iphone/AuthenticationScreen.swift | 4 ++--
 enzevalos_iphone/MailSession.swift          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/enzevalos_iphone/AuthenticationScreen.swift b/enzevalos_iphone/AuthenticationScreen.swift
index ea9e3f6b..d17b3476 100644
--- a/enzevalos_iphone/AuthenticationScreen.swift
+++ b/enzevalos_iphone/AuthenticationScreen.swift
@@ -43,7 +43,7 @@ struct AuthenticationScreen: View {
                             self.viewModel.detailValidation(self.login, self.password, self.username, self.imapServer, self.imapPort, self.imapEncryption, self.smtpServer, self.smtpPort, self.smtpEncryption) :
                             self.viewModel.validate(self.login, self.password)
                         }) {
-                            Text("Button")
+                            Text("Login")
                         }
                     }
                     
@@ -81,7 +81,7 @@ struct AuthenticationScreen: View {
                     }
                     
                     Button(action: { self.viewModel.startGoogleOauth() }) {
-                        Text("Google button")
+                        Text("Google login")
                     }
                     
                 }.padding()
diff --git a/enzevalos_iphone/MailSession.swift b/enzevalos_iphone/MailSession.swift
index 4069cdf8..1df6ce70 100644
--- a/enzevalos_iphone/MailSession.swift
+++ b/enzevalos_iphone/MailSession.swift
@@ -643,7 +643,7 @@ class MailSession {
         let (_, server) = MailSession.splitAddr(userAddr: self.mailAddr)
         if let domain = server {
             if self.sessionType == SessionType.IMAP {
-                createServers(domain: domain, prefixes: MailSession.IMAPPREFIX, ports: [UInt32(111)])
+                createServers(domain: domain, prefixes: MailSession.IMAPPREFIX, ports: MailSession.IMAPPORT)
             }
             else {
                 createServers(domain: domain, prefixes: MailSession.SMTPPREFIX, ports: MailSession.SMTPPORT)
-- 
GitLab