don't trigger SLO when user is just locally connected (#19477)

This commit is contained in:
Josue Kouka 2017-10-17 10:51:51 +02:00
parent 7ea471c373
commit b073c80ad7
1 changed files with 8 additions and 1 deletions

View File

@ -1,8 +1,15 @@
$(function(){
if (typeof(mandaye_logout_locator) === 'undefined')
return false;
$(mandaye_logout_locator).click(function(event){
// if user is not authenticated on mandaye, don't launch slo
if ($('#mandaye-logon-url').find('a').attr('href') !== '/_mandaye/logout/'){
return false;
}
$(mandaye_logout_locator).click(function(){
window.location = '/_mandaye/logout/';
setTimeout(function(){
window.location.href = '/_mandaye/logout/';
}, 300);
return false;
});
});