feat(core): Add URL encryption for GDPR compliancy. Disable url encryption for caldav.

This commit is contained in:
smizrahi
2024-02-12 14:52:01 +01:00
parent 42511d666f
commit fc778295ff
6 changed files with 17 additions and 14 deletions
+3 -3
View File
@@ -344,7 +344,7 @@ static const NSString *kJwtKey = @"jwt";
forKey: @"expire"];
[json setObject: [NSNumber numberWithInt: grace]
forKey: @"grace"];
[json setObject: [SOGoUser getEncryptedUsernameIfNeeded: username]
[json setObject: [SOGoUser getEncryptedUsernameIfNeeded: username request: request]
forKey: @"username"];
response = [self responseWithStatus: 200
@@ -575,7 +575,7 @@ static const NSString *kJwtKey = @"jwt";
response
= [self redirectToLocation: [NSString stringWithFormat: @"%@%@",
oldLocation,
[[SOGoUser getEncryptedUsernameIfNeeded:login] stringByEscapingURL]]];
[[SOGoUser getEncryptedUsernameIfNeeded:login request: [context request]] stringByEscapingURL]]];
}
else
{
@@ -791,7 +791,7 @@ static const NSString *kJwtKey = @"jwt";
}
response = [self responseWithStatus: 200 andJSONRepresentation:
[NSDictionary dictionaryWithObjectsAndKeys: [SOGoUser getEncryptedUsernameIfNeeded:username], @"username", nil]];
[NSDictionary dictionaryWithObjectsAndKeys: [SOGoUser getEncryptedUsernameIfNeeded:username request: request], @"username", nil]];
if (!passwordRecovery) {
authCookie = [auth cookieWithUsername: username