Skip to content
Snippets Groups Projects
Commit 4729da9d authored by Oliver Wiese's avatar Oliver Wiese
Browse files

add alternative when loading the username

parent 5ff584a2
No related branches found
No related tags found
No related merge requests found
...@@ -525,7 +525,11 @@ class MailSession { ...@@ -525,7 +525,11 @@ class MailSession {
self.sessionType = sessionType self.sessionType = sessionType
if let username = UserManager.loadUserValue(Attribute.accountname) as? String { if let username = UserManager.loadUserValue(Attribute.accountname) as? String {
self.username = username self.username = username
}else { }
else if let username = UserManager.loadUserValue(Attribute.userAddr) as? String {
self.username = username
}
else {
throw MailServerConnectionError.AuthenticationError throw MailServerConnectionError.AuthenticationError
} }
if let pw = UserManager.loadUserValue(Attribute.userPW) as? String { if let pw = UserManager.loadUserValue(Attribute.userPW) as? String {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment