mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 09:53:23 +00:00
feat(core): Add URL encryption for GDPR compliancy
This commit is contained in:
@@ -819,5 +819,20 @@ NSComparisonResult languageSort(id el1, id el2, void *context)
|
||||
return disableSharing;
|
||||
}
|
||||
|
||||
- (BOOL)isURLEncryptionEnabled {
|
||||
return [self boolForKey: @"SOGoURLEncryptionEnabled"];
|
||||
}
|
||||
|
||||
- (NSString *) urlEncryptionPassphrase
|
||||
{
|
||||
NSString *passphrase;
|
||||
|
||||
passphrase = [self stringForKey: @"SOGoURLEncryptionPassphrase"];
|
||||
|
||||
if (!passphrase)
|
||||
passphrase = @"SOGoSuperSecret0"; // Default passphrase
|
||||
|
||||
return passphrase;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user