Projet

Général

Profil

0001-don-t-trigger-SLO-when-user-is-just-locally-connecte.patch

Josué Kouka, 17 octobre 2017 10:52

Télécharger (1,07 ko)

Voir les différences:

Subject: [PATCH] don't trigger SLO when user is just locally connected
 (#19477)

 mandayejs/mandaye/static/single.logout.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
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
-