mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
(feat) added AngularJS's XSRF support (#3246)
This commit is contained in:
@@ -430,6 +430,18 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||
return [self boolForKey: @"SOGoEASDebugEnabled"];
|
||||
}
|
||||
|
||||
- (BOOL) xsrfValidationEnabled
|
||||
{
|
||||
id o;
|
||||
|
||||
if (!(o = [self objectForKey: @"SOGoXSRFValidationEnabled"]))
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
return [o boolValue];
|
||||
}
|
||||
|
||||
- (NSString *) pageTitle
|
||||
{
|
||||
return [self stringForKey: @"SOGoPageTitle"];
|
||||
|
||||
Reference in New Issue
Block a user