feat(password-recovery): Clean session cookies on password change

This commit is contained in:
smizrahi
2022-10-24 13:49:13 +02:00
parent e269df8c6e
commit 440a15ba98
3 changed files with 6 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -184,6 +184,10 @@
},
data: { userName: userName, newPassword: newPassword, oldPassword: oldPassword, token: token }
}).then(function() {
// Clean cookies for reauthenticate
$cookies.remove('XSRF-TOKEN', { path: '/SOGo/' });
$cookies.remove('0xHIGHFLYxSOGo', { path: '/SOGo/' });
d.resolve({url: redirectUrl(userName, domain)});
}, function(response) {
var error,