mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Monotone-Parent: 061cba1969b1c526f888bff270f05c4fbb1825d1
Monotone-Revision: 2b34b89b1b94711bf4f516a1204ac918c0e2edd2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-18T22:48:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-10-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator
|
||||
-userInContext:]): override the super method by returning
|
||||
anonymous if the super returns nil.
|
||||
|
||||
* UI/Common/UIxPageFrame.m ([UIxPageFrame
|
||||
-productLocalizableStrings]): new method that returns the
|
||||
product-specific translation dictionary as a JSON hash.
|
||||
|
||||
@@ -92,6 +92,23 @@
|
||||
// && [_pwd isEqualToString: @"freebusy"]));
|
||||
}
|
||||
|
||||
- (SOGoUser *) userInContext: (WOContext *)_ctx
|
||||
{
|
||||
static SOGoUser *anonymous = nil;
|
||||
SOGoUser *user;
|
||||
|
||||
if (!anonymous)
|
||||
anonymous
|
||||
= [[SOGoUser alloc] initWithLogin: @"anonymous"
|
||||
roles: [NSArray arrayWithObject: SoRole_Anonymous]];
|
||||
|
||||
user = (SOGoUser *) [super userInContext: _ctx];
|
||||
if (!user)
|
||||
user = anonymous;
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
- (NSString *) passwordInContext: (WOContext *) context
|
||||
{
|
||||
NSArray *creds;
|
||||
|
||||
Reference in New Issue
Block a user