mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-29 13:55:42 +00:00
feat(core): Add URL encryption for GDPR compliancy
This commit is contained in:
1 parent
d505b874f7
commit
10d789fb1f
2 files changed
+10
-11
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user