0001-don-t-trigger-SLO-when-user-is-just-locally-connecte.patch
mandayejs/mandaye/static/single.logout.js | ||
---|---|---|
1 | 1 |
$(function(){ |
2 | 2 |
if (typeof(mandaye_logout_locator) === 'undefined') |
3 | 3 |
return false; |
4 |
$(mandaye_logout_locator).click(function(){ |
|
4 |
$(mandaye_logout_locator).click(function(event){ |
|
5 |
// if user is not authenticated on mandaye, don't launch slo |
|
6 |
if ($('#mandaye-logon-url').find('a').attr('href') !== '/_mandaye/logout/'){ |
|
7 |
return false; |
|
8 |
} |
|
5 | 9 |
setTimeout(function(){ |
6 | 10 |
window.location.href = '/_mandaye/logout/'; |
7 | 11 |
}, 300); |
8 |
- |