mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
feat(password-recovery): Clean session cookies on password change
This commit is contained in:
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,
|
||||
|
||||
Reference in New Issue
Block a user