Projet

Général

Profil

« Précédent | Suivant » 

Révision b073c80a

Ajouté par Josué Kouka il y a plus de 6 ans

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

Voir les différences:

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(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
        }
4 9
    $(mandaye_logout_locator).click(function(){
5
        window.location = '/_mandaye/logout/';
10
        setTimeout(function(){
11
            window.location.href = '/_mandaye/logout/';
12
        }, 300);
6 13
        return false;
7 14
    });
8 15
});

Formats disponibles : Unified diff