don't trigger SLO when user is just locally connected (#19477)
This commit is contained in:
parent
7ea471c373
commit
b073c80ad7
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
|
Reference in New Issue