Use domainDefaults to get imapCASServiceName
parent
a0022e06f7
commit
6b25f08943
|
@ -279,12 +279,15 @@
|
||||||
if ([authType isEqualToString: @"cas"])
|
if ([authType isEqualToString: @"cas"])
|
||||||
{
|
{
|
||||||
SOGoCASSession *session;
|
SOGoCASSession *session;
|
||||||
|
SOGoUser *user;
|
||||||
NSString *service, *scheme;
|
NSString *service, *scheme;
|
||||||
|
|
||||||
session = [SOGoCASSession CASSessionWithIdentifier: password
|
session = [SOGoCASSession CASSessionWithIdentifier: password
|
||||||
fromProxy: NO];
|
fromProxy: NO];
|
||||||
|
|
||||||
service = [sd imapCASServiceName]; // try configured service first
|
user = [self userInContext: context];
|
||||||
|
// Try configured CAS service name first
|
||||||
|
service = [[user domainDefaults] imapCASServiceName];
|
||||||
if (!service)
|
if (!service)
|
||||||
{
|
{
|
||||||
// We must NOT assume the scheme exists
|
// We must NOT assume the scheme exists
|
||||||
|
|
Loading…
Reference in New Issue