mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-23 23:22:45 +00:00
feat(core): Add URL encryption for GDPR compliancy
This commit is contained in:
@@ -788,8 +788,10 @@ static const NSString *kJwtKey = @"jwt";
|
||||
[us disableForceResetPassword];
|
||||
}
|
||||
}
|
||||
|
||||
response = [self responseWithStatus: 200 andJSONRepresentation:
|
||||
[NSDictionary dictionaryWithObjectsAndKeys: [SOGoUser getEncryptedUsernameIfNeeded:username], @"username", nil]];
|
||||
|
||||
response = [self responseWith204];
|
||||
if (!passwordRecovery) {
|
||||
authCookie = [auth cookieWithUsername: username
|
||||
andPassword: newPassword
|
||||
|
||||
@@ -183,8 +183,12 @@
|
||||
'X-XSRF-TOKEN' : xsrfCookie
|
||||
},
|
||||
data: { userName: userName, newPassword: newPassword, oldPassword: oldPassword, token: token }
|
||||
}).then(function() {
|
||||
d.resolve({url: redirectUrl(userName, domain)});
|
||||
}).then(function (response) {
|
||||
if (response && response.data && response.data.username) {
|
||||
d.resolve({ url: redirectUrl(response.data.username, domain) });
|
||||
} else {
|
||||
d.resolve({ url: redirectUrl(userName, domain) });
|
||||
}
|
||||
}, function(response) {
|
||||
var error,
|
||||
data = response.data,
|
||||
|
||||
Reference in New Issue
Block a user