mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-22 21:50:32 +00:00
Monotone-Parent: ab2613d820779df99f34c6d0ae2ec38908cae05f
Monotone-Revision: 28cde865644a3171d49fc0d08dad0efa39112fa2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-19T21:30:25 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
#import <NGExtensions/NSString+misc.h>
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
#import <Appointments/SOGoAppointmentFolders.h>
|
||||
|
||||
#import <SOGo/NSDictionary+Utilities.h>
|
||||
#import <SOGo/NSDictionary+BSJSONAdditions.h>
|
||||
#import <SOGo/SOGoCache.h>
|
||||
@@ -124,7 +126,9 @@
|
||||
WORequest *request;
|
||||
WOCookie *authCookie;
|
||||
SOGoWebAuthenticator *auth;
|
||||
SOGoAppointmentFolders *calendars;
|
||||
SOGoUserDefaults *ud;
|
||||
SOGoUser *loggedInUser;
|
||||
NSString *username, *password, *language;
|
||||
NSArray *supportedLanguages;
|
||||
|
||||
@@ -167,12 +171,18 @@
|
||||
|
||||
supportedLanguages = [[SOGoSystemDefaults sharedSystemDefaults]
|
||||
supportedLanguages];
|
||||
loggedInUser = [SOGoUser userWithLogin: username];
|
||||
[context setActiveUser: loggedInUser];
|
||||
if (language && [supportedLanguages containsObject: language])
|
||||
{
|
||||
ud = [[SOGoUser userWithLogin: username] userDefaults];
|
||||
ud = [loggedInUser userDefaults];
|
||||
[ud setLanguage: language];
|
||||
[ud synchronize];
|
||||
}
|
||||
|
||||
calendars = [loggedInUser calendarsFolderInContext: context];
|
||||
if ([calendars respondsToSelector: @selector (reloadWebCalendars:)])
|
||||
[calendars reloadWebCalendars: NO];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user