feat(core): Add URL encryption for GDPR compliancy

This commit is contained in:
smizrahi committed 2023-12-22 11:33:40 +01:00
1 parent d505b874f7
commit 10d789fb1f
2 files changed
+10 -11

No files matched your search

+5 -3
View File
@@ -47,7 +47,7 @@
#import "SOGoUser.h"
static const NSString *kEncryptedUserNamePrefix = @"uenc-";
static const NSString *kEncryptedUserNamePrefix = @"uenc";
@implementation SoUser (SOGoExtension)
@@ -1213,11 +1213,13 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc-";
request = [context request];
cache = [SOGoCache sharedCache];
cacheKey = [NSString stringWithFormat: @"%@%@%@", kEncryptedUserNamePrefix, username, [request requestHandlerKey]];
cacheKey = [NSString stringWithFormat: @"%@_%@_%@", kEncryptedUserNamePrefix, username, [request requestHandlerKey]];
exception = nil;
tmp = nil;
tmp = [cache valueForKey: cacheKey];
NSLog(@"DKEY %@ - %@", cacheKey, tmp);
if (tmp) {
return tmp;
} else {
@@ -1249,7 +1251,7 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc-";
request = [context request];
cache = [SOGoCache sharedCache];
cacheKey = [NSString stringWithFormat: @"%@%@%@", kEncryptedUserNamePrefix, username, [request requestHandlerKey]];
cacheKey = [NSString stringWithFormat: @"%@_%@_%@", kEncryptedUserNamePrefix, username, [request requestHandlerKey]];
exception = nil;
tmp = nil;